Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Feb 10, 2024
1 parent dc71fcb commit c8ce7b2
Show file tree
Hide file tree
Showing 787 changed files with 12 additions and 1,260 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,7 @@ jobs:
path: |
**/__mismatch__/*
- name: Fail if tests failed or were cancelled
run: exit 1
if: |
steps.run-tests.outcome == 'failure' ||
steps.run-tests.outcome == 'cancelled'
codeql:
name: CodeQL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;

Expand Down
2 changes: 0 additions & 2 deletions src/GreenDonut/test/Core.Tests/DataLoaderOptionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using Snapshooter.Xunit;
using Xunit;

namespace GreenDonut;
Expand Down
1 change: 0 additions & 1 deletion src/GreenDonut/test/Core.Tests/TestHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;

namespace GreenDonut;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using HotChocolate.ApolloFederation;
using HotChocolate.ApolloFederation.Types;
using HotChocolate.Execution.Configuration;
using FederationVersion = HotChocolate.ApolloFederation.FederationVersion;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Collections.Generic;
using System.Reflection;
using HotChocolate.Types.Descriptors;
using static System.Reflection.MemberTypes;
using static HotChocolate.ApolloFederation.FederationContextData;
using static HotChocolate.ApolloFederation.ThrowHelper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Runtime.Serialization;

namespace HotChocolate.AspNetCore;

public class GraphQLRequestException : GraphQLException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System.Linq.Expressions;
using System.Reflection;
using HotChocolate.Internal;
using HotChocolate.Resolvers;
using HotChocolate.Resolvers.Expressions;
using HotChocolate.Resolvers.Expressions.Parameters;
using HotChocolate.Utilities;
using Microsoft.AspNetCore.Http;

namespace HotChocolate.AspNetCore.ParameterExpressionBuilders;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Buffers;
using System.Text.Json;
using static HotChocolate.Transport.Properties.TransportAbstractionResoucrces;
using static HotChocolate.Transport.Serialization.Utf8GraphQLResultProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using HotChocolate.Transport.Serialization;
using HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages;

namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.Json;
using HotChocolate.Transport.Serialization;

namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.Json;
using HotChocolate.Transport.Serialization;

namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Text.Json;
using HotChocolate.Transport.Serialization;

namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.CommandLine;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
using CookieCrumble;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;
using Moq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.CommandLine;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
using CookieCrumble;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;
using Moq;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.CommandLine.IO;
using System.CommandLine.Parsing;
using CookieCrumble;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using HotChocolate.AspNetCore.Extensions;
using HotChocolate.AspNetCore.Serialization;
using HotChocolate.Execution;
using HotChocolate.StarWars;
using HotChocolate.Tests;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using HotChocolate.AspNetCore.Subscriptions.Protocols.Apollo;
using HotChocolate.Language;
using HotChocolate.Language.Utilities;
using HotChocolate.Transport;
using HotChocolate.Transport.Sockets;
using HotChocolate.Utilities;
using Newtonsoft.Json;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Text;
using HotChocolate.AspNetCore.Subscriptions.Protocols;
using HotChocolate.AspNetCore.Subscriptions.Protocols.GraphQLOverWebSocket;
using HotChocolate.Transport;
using HotChocolate.Transport.Sockets;
using HotChocolate.Utilities;
using static HotChocolate.Language.Utf8GraphQLRequestParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Text;
using System.Text.Json;
using CookieCrumble;
using Moq;

namespace HotChocolate.Transport.Http.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using HotChocolate.AspNetCore;
using HotChocolate.AzureFunctions;
using HotChocolate.Execution.Configuration;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Azure.WebJobs.Host.Config;
using Microsoft.Extensions.DependencyInjection.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using HotChocolate.AzureFunctions.IsolatedProcess.Tests.Helpers;
using HotChocolate.Types;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using HotChocolate.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using HotChocolate.Caching;
using HotChocolate.Types;

namespace HotChocolate.Types;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using HotChocolate.Caching;
using HotChocolate.Types;

namespace HotChocolate.Types;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using HotChocolate.Caching;
using HotChocolate.Types;

namespace HotChocolate.Types;

Expand Down
2 changes: 0 additions & 2 deletions src/HotChocolate/Core/src/Abstractions/AggregateError.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading.Tasks;
using static HotChocolate.Properties.AbstractionResources;

namespace HotChocolate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using HotChocolate.Language;

#nullable enable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Buffers;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
Expand Down
3 changes: 0 additions & 3 deletions src/HotChocolate/Core/src/Abstractions/Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using HotChocolate.Execution;
using HotChocolate.Utilities;

namespace HotChocolate;

Expand Down
1 change: 0 additions & 1 deletion src/HotChocolate/Core/src/Abstractions/UserState.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Security.Claims;
using System.Security.Cryptography;

namespace HotChocolate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using HotChocolate.Authorization;
using HotChocolate.Execution;
using HotChocolate.Execution.Configuration;
using HotChocolate.Resolvers;
using Microsoft.Extensions.DependencyInjection.Extensions;

namespace Microsoft.Extensions.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using HotChocolate.Language;
using HotChocolate.Utilities;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using Microsoft.Extensions.ObjectPool;
using HotChocolate;
using HotChocolate.Execution;
using HotChocolate.Execution.DependencyInjection;
using HotChocolate.Execution.Processing;
using HotChocolate.Execution.Processing.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using HotChocolate.Execution.Configuration;
using HotChocolate.Execution.Processing;
using HotChocolate.Types;
using HotChocolate.Utilities;
using Microsoft.Extensions.DependencyInjection.Extensions;

// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using GreenDonut;
using HotChocolate;
using HotChocolate.Execution.Configuration;
using HotChocolate.Internal;
using HotChocolate.Types.Descriptors;
using Microsoft.Extensions.DependencyInjection.Extensions;

// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Threading.Tasks;
using HotChocolate.Execution.Caching;
using HotChocolate.Execution.Instrumentation;
using static HotChocolate.Execution.Pipeline.PipelineTools;

namespace HotChocolate.Execution.Pipeline;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Immutable;
using HotChocolate.Types;
using Microsoft.Extensions.DependencyInjection;

namespace HotChocolate.Execution.Processing;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
using HotChocolate.Language;
using HotChocolate.Resolvers;
using HotChocolate.Types;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Immutable;
using HotChocolate.Execution.Processing.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using HotChocolate.Language;
using HotChocolate.Utilities;
using static HotChocolate.Execution.ThrowHelper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace HotChocolate.Execution.Processing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using HotChocolate.Language;
using HotChocolate.Types;
using HotChocolate.Utilities;
using static HotChocolate.Execution.Properties.Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Diagnostics;
using System.Linq;
using HotChocolate.Execution.Properties;
using HotChocolate.Execution.Serialization;
using HotChocolate.Language;
using HotChocolate.Resolvers;
using HotChocolate.Types;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using HotChocolate.Language;

namespace HotChocolate.Execution.Processing;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;

Expand Down
1 change: 0 additions & 1 deletion src/HotChocolate/Core/src/Execution/RequestExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Threading;
using System.Threading.Tasks;
using HotChocolate.Execution.Batching;
using HotChocolate.Resolvers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.ObjectPool;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Text.Json;

namespace HotChocolate.Execution.Serialization;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Linq;
using GreenDonut;
using static HotChocolate.Fetching.Properties.FetchingResources;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using HotChocolate.Subscriptions.Diagnostics;
using static HotChocolate.Subscriptions.Postgres.PostgresResources;

namespace HotChocolate.Subscriptions.Postgres;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Runtime.Serialization;

namespace HotChocolate.Subscriptions;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Reflection.Metadata.Ecma335;
using System.Text.Json;
using System.Text.Json.Serialization;
using static HotChocolate.Subscriptions.Properties.Resources;
Expand Down
2 changes: 0 additions & 2 deletions src/HotChocolate/Core/src/Types.CursorPagination/IEdgeType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace HotChocolate.Types.Pagination;

/// <summary>
Expand Down
Loading

0 comments on commit c8ce7b2

Please sign in to comment.