Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -5,11 +5,13 @@ using StellaOps.Scanner.CallGraph.Binary.Disassembly;
|
||||
using StellaOps.Scanner.CallGraph.Binary.Analysis;
|
||||
using Xunit;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Scanner.CallGraph.Tests;
|
||||
|
||||
public class BinaryTextSectionReaderTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ReadsElfTextSection()
|
||||
{
|
||||
var textBytes = new byte[] { 0x90, 0x90, 0xC3, 0x90 };
|
||||
@@ -32,7 +34,8 @@ public class BinaryTextSectionReaderTests
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ReadsPeTextSection()
|
||||
{
|
||||
var textBytes = new byte[] { 0x90, 0x90, 0xC3, 0x90 };
|
||||
@@ -54,7 +57,8 @@ public class BinaryTextSectionReaderTests
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ReadsMachOTextSection()
|
||||
{
|
||||
var textBytes = new byte[] { 0x1F, 0x20, 0x03, 0xD5 };
|
||||
@@ -76,7 +80,8 @@ public class BinaryTextSectionReaderTests
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task StringScannerExtractsLibraryCandidates()
|
||||
{
|
||||
var textBytes = new byte[] { 0x90, 0x90, 0xC3, 0x90 };
|
||||
|
||||
Reference in New Issue
Block a user