Added scalar operator overloads for Vector types, fixed pointer math in Store methods, and improved enumerator and memory management. Updated test setup and removed allocation leak tests. - Added left-hand scalar operator overloads for Vector2/3/4. - Fixed pointer arithmetic in Store and GetUnsafePtr methods. - Marked SetValue as readonly in UnsafeSparseSet. - Improved enumerator initialization/reset for slot map and sparse set. - Updated test projects' AssemblyVersion. - Removed TestAllocationManager and added global AllocationManager setup/teardown. - Updated TestConcurrentSlotMap for thread safety and correct cancellation. - Minor formatting and parameter improvements.
20 lines
441 B
C#
20 lines
441 B
C#
using Misaki.HighPerformance.LowLevel.Buffer;
|
|
|
|
namespace Misaki.HighPerformance.Test.UnitTest;
|
|
|
|
[TestClass]
|
|
public static class GlobalSetup
|
|
{
|
|
[GlobalTestInitialize]
|
|
public static void GlobalInitialize(TestContext ctx)
|
|
{
|
|
AllocationManager.Initialize(AllocationManagerInitOpts.Default);
|
|
}
|
|
|
|
[GlobalTestCleanup]
|
|
public static void GlobalCleanup(TestContext ctx)
|
|
{
|
|
AllocationManager.Dispose();
|
|
}
|
|
}
|