Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -5,11 +5,14 @@ using StellaOps.Graph.Api.Contracts;
using StellaOps.Graph.Api.Services;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Graph.Api.Tests;
public class QueryServiceTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task QueryAsync_EmitsNodesEdgesStatsAndCursor()
{
var repo = new InMemoryGraphRepository();
@@ -36,7 +39,8 @@ public class QueryServiceTests
Assert.Contains(lines, l => l.Contains("\"type\":\"cursor\""));
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task QueryAsync_ReturnsBudgetExceededError()
{
var repo = new InMemoryGraphRepository();
@@ -60,7 +64,8 @@ public class QueryServiceTests
Assert.Contains("GRAPH_BUDGET_EXCEEDED", lines[0]);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task QueryAsync_IncludesOverlaysAndSamplesExplainOnce()
{
var repo = new InMemoryGraphRepository(new[]