Skip to content

Commit

Permalink
Add tests for various error cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-tengler committed Jun 20, 2024
1 parent 889706d commit af35a84
Show file tree
Hide file tree
Showing 48 changed files with 4,929 additions and 909 deletions.
452 changes: 0 additions & 452 deletions src/HotChocolate/Fusion/test/Core.Tests/ErrorTests.cs

This file was deleted.

429 changes: 429 additions & 0 deletions src/HotChocolate/Fusion/test/Core.Tests/NullMergingTests.cs

Large diffs are not rendered by default.

637 changes: 637 additions & 0 deletions src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ namespace HotChocolate.Fusion;

internal static class TestHelper
{
public static void CollectSnapshotData(
Snapshot snapshot,
string requestText,
IExecutionResult result)
{
var request = Utf8GraphQLParser.Parse(requestText);

CollectSnapshotData(snapshot, request, result);
}

public static void CollectSnapshotData(
Snapshot snapshot,
DocumentNode request,
Expand Down
Loading

0 comments on commit af35a84

Please sign in to comment.