Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions samples/ZeroAlloc.Mapping.AotSmoke/Internal/AllocationGate.cs

This file was deleted.

2 changes: 1 addition & 1 deletion samples/ZeroAlloc.Mapping.AotSmoke/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ZeroAlloc.Mapping;
using ZeroAlloc.Mapping.AotSmoke.Internal;
using ZeroAlloc.TestHelpers;
using ZeroAlloc.Results;

namespace ZeroAlloc.Mapping.AotSmoke;
Expand Down Expand Up @@ -112,7 +112,7 @@
}
}

private static void ExerciseBehavior()

Check warning on line 115 in samples/ZeroAlloc.Mapping.AotSmoke/Program.cs

View workflow job for this annotation

GitHub Actions / aot-smoke

Method is too long (63 lines; maximum allowed: 60) (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0051.md)

Check warning on line 115 in samples/ZeroAlloc.Mapping.AotSmoke/Program.cs

View workflow job for this annotation

GitHub Actions / build

Method is too long (63 lines; maximum allowed: 60) (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0051.md)

Check warning on line 115 in samples/ZeroAlloc.Mapping.AotSmoke/Program.cs

View workflow job for this annotation

GitHub Actions / build

Method is too long (63 lines; maximum allowed: 60) (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0051.md)
{
// [Map] happy path
var order = Mappings.Map(new OrderRequest(42, "hello"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@
ReferenceOutputAssembly="false"
UndefineProperties="PublishAot" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ZeroAlloc.TestHelpers" Version="1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>contentfiles;build</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion tests/ZeroAlloc.Mapping.Tests/AllocationBudgetTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ZeroAlloc.Mapping.AotSmoke.Internal;
using ZeroAlloc.TestHelpers;

namespace ZeroAlloc.Mapping.Tests;

Expand Down
8 changes: 4 additions & 4 deletions tests/ZeroAlloc.Mapping.Tests/ZeroAlloc.Mapping.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.*" />
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<PackageReference Include="ZeroAlloc.TestHelpers" Version="1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>contentfiles;build</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Using Include="Xunit" />
Expand All @@ -19,8 +23,4 @@
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\samples\ZeroAlloc.Mapping.AotSmoke\Internal\AllocationGate.cs"
Link="Internal\AllocationGate.cs" />
</ItemGroup>
</Project>
Loading