Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -11,7 +11,8 @@ namespace StellaOps.Signals.Reachability.Tests;
|
||||
|
||||
public sealed class RuntimeFactsNdjsonReaderTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ReadAsync_ParsesLines()
|
||||
{
|
||||
var ndjson = """
|
||||
@@ -29,7 +30,8 @@ public sealed class RuntimeFactsNdjsonReaderTests
|
||||
events[1].LoaderBase.Should().Be("0x1000");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ReadAsync_HandlesGzip()
|
||||
{
|
||||
var ndjson = """
|
||||
@@ -40,6 +42,7 @@ public sealed class RuntimeFactsNdjsonReaderTests
|
||||
await using (var writer = new StreamWriter(gzip, Encoding.UTF8, leaveOpen: true))
|
||||
{
|
||||
await writer.WriteAsync(ndjson);
|
||||
using StellaOps.TestKit;
|
||||
}
|
||||
|
||||
compressed.Position = 0;
|
||||
|
||||
Reference in New Issue
Block a user