Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -16,7 +16,8 @@ namespace StellaOps.Determinism.Analyzers.Tests;
|
||||
|
||||
public class CanonicalizationBoundaryAnalyzerTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task JsonSerialize_InDigestMethod_ReportsDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -41,7 +42,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode, expected);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task JsonSerialize_InRegularMethod_NoDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -59,7 +61,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task JsonSerialize_WithCanonicalizerField_NoDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -87,7 +90,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task DictionaryForeach_InDigestMethod_ReportsDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -117,7 +121,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode, expected);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task DictionaryForeach_WithOrderBy_NoDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -145,7 +150,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task FrozenDictionaryForeach_NoDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -172,7 +178,8 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task JsonSerialize_InResolverClass_ReportsDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
@@ -194,12 +201,14 @@ public class CanonicalizationBoundaryAnalyzerTests
|
||||
await VerifyAsync(testCode, expected);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task JsonSerialize_InAttestorClass_ReportsDiagnostic()
|
||||
{
|
||||
var testCode = """
|
||||
using System.Text.Json;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
public class SigningAttestor
|
||||
{
|
||||
public string CreatePayload(object data)
|
||||
|
||||
Reference in New Issue
Block a user