nuwave / lighthouse
Files Complexity Coverage
src/ClientDirectives/ClientDirective.php 6 88.24%
src/Console/CacheCommand.php 1 100.00%
src/Console/ClearCacheCommand.php 1 0.00%
src/Console/DirectiveCommand.php 23 3.13%
src/Console/FieldGeneratorCommand.php 3 28.57%
src/Console/IdeHelperCommand.php 18 96.92%
src/Console/InterfaceCommand.php 2 0.00%
src/Console/LighthouseGeneratorCommand.php 10 67.86%
src/Console/MutationCommand.php 1 0.00%
src/Console/PrintSchemaCommand.php 5 89.47%
src/Console/QueryCommand.php 1 0.00%
src/Console/ScalarCommand.php 2 0.00%
src/Console/SubscriptionCommand.php 2 0.00%
src/Console/UnionCommand.php 2 0.00%
src/Console/ValidateSchemaCommand.php 3 100.00%
src/Console/ValidatorCommand.php 2 0.00%
src/Defer/Defer.php 27 98.77%
src/Defer/DeferServiceProvider.php 3 100.00%
src/Defer/DeferrableDirective.php 16 92.31%
src/Events/BuildSchemaString.php 1 100.00%
src/Events/EndExecution.php 1 100.00%
src/Events/EndOperationOrOperations.php 1 100.00%
src/Events/EndRequest.php 1 100.00%
src/Events/ManipulateAST.php 1 100.00%
src/Events/ManipulateResult.php 1 100.00%
src/Events/StartExecution.php 1 100.00%
src/Events/StartOperationOrOperations.php 1 100.00%
src/Events/StartRequest.php 1 100.00%
src/Events/ValidateSchema.php 1 100.00%
src/Exceptions/AuthenticationException.php 3 100.00%
src/Exceptions/AuthorizationException.php 2 100.00%
src/Exceptions/DefinitionException.php 2 100.00%
src/Exceptions/DirectiveException.php 2 0.00%
src/Exceptions/GenericException.php 2 0.00%
src/Exceptions/ParseException.php 2 0.00%
src/Exceptions/RateLimitException.php 3 100.00%
src/Exceptions/ValidationException.php 7 100.00%
src/Execution/Arguments/ArgPartitioner.php 21 98.39%
src/Execution/Arguments/Argument.php 5 100.00%
src/Execution/Arguments/ArgumentSet.php 25 100.00%
src/Execution/Arguments/ArgumentSetFactory.php 16 97.92%
src/Execution/Arguments/ArgumentTypeNodeConverter.php 3 100.00%
src/Execution/Arguments/ListType.php 1 100.00%
src/Execution/Arguments/NamedType.php 1 100.00%
src/Execution/Arguments/NestedBelongsTo.php 11 100.00%
src/Execution/Arguments/NestedManyToMany.php 11 100.00%
src/Execution/Arguments/NestedMorphTo.php 3 100.00%
src/Execution/Arguments/NestedOneToMany.php 14 100.00%
src/Execution/Arguments/NestedOneToOne.php 6 100.00%
src/Execution/Arguments/ResolveNested.php 4 100.00%
src/Execution/Arguments/SaveModel.php 9 100.00%
src/Execution/Arguments/UpdateModel.php 3 100.00%
src/Execution/Arguments/UpsertModel.php 4 100.00%
src/Execution/BatchLoader/BatchLoaderRegistry.php 4 100.00%
src/Execution/BatchLoader/RelationBatchLoader.php 5 100.00%
src/Execution/ContextFactory.php 1 100.00%
src/Execution/DataLoader/BatchLoader.php 7 57.69%
src/Execution/ErrorPool.php 4 64.71%
src/Execution/ExtensionErrorHandler.php 3 92.31%
src/Execution/ExtensionsResponse.php 3 100.00%
src/Execution/ModelsLoader/AggregateModelsLoader.php 3 100.00%
src/Execution/ModelsLoader/CountModelsLoader.php 8 96.43%
src/Execution/ModelsLoader/PaginatedModelsLoader.php 17 96.10%
src/Execution/ModelsLoader/SimpleModelsLoader.php 3 100.00%
src/Execution/ReportingErrorHandler.php 5 90.91%
src/Execution/Resolved.php 2 100.00%
src/Execution/SingleResponse.php 1 100.00%
src/Execution/Utils/ModelKey.php 1 100.00%
src/Execution/Utils/Subscription.php 5 75.00%
src/Execution/ValidationRulesProvider.php 2 100.00%
src/Federation/ASTManipulator.php 10 100.00%
src/Federation/Directives/ExtendsDirective.php 1 100.00%
src/Federation/Directives/ExternalDirective.php 3 100.00%
src/Federation/Directives/KeyDirective.php 3 85.71%
src/Federation/Directives/ProvidesDirective.php 1 100.00%
src/Federation/Directives/RequiresDirective.php 1 100.00%
src/Federation/EntityResolverProvider.php 30 71.00%
src/Federation/FederationPrinter.php 8 97.78%
src/Federation/FederationServiceProvider.php 2 100.00%
src/Federation/Resolvers/Entities.php 3 100.00%
src/Federation/Resolvers/Service.php 1 100.00%
src/Federation/SchemaPrinter.php 9 81.63%
src/Federation/SchemaValidator.php 16 100.00%
src/Federation/Types/Any.php 5 76.47%
src/Federation/Types/FieldSet.php 3 0.00%
src/GlobalId/GlobalId.php 5 100.00%
src/GlobalId/GlobalIdDirective.php 11 84.62%
src/GlobalId/GlobalIdException.php 2 0.00%
src/GlobalId/GlobalIdServiceProvider.php 8 100.00%
src/GlobalId/NodeDirective.php 6 100.00%
src/GlobalId/NodeRegistry.php 6 100.00%
src/GraphQL.php 19 96.84%
src/LighthouseServiceProvider.php 8 71.43%
src/OrderBy/OrderByDirective.php 6 100.00%
src/OrderBy/OrderByServiceProvider.php 2 100.00%
src/Pagination/ConnectionField.php 9 100.00%
src/Pagination/Cursor.php 3 83.33%
src/Pagination/PaginateDirective.php 8 100.00%
src/Pagination/PaginationArgs.php 13 96.97%
src/Pagination/PaginationManipulator.php 17 97.92%
src/Pagination/PaginationServiceProvider.php 4 100.00%
src/Pagination/PaginationType.php 10 90.48%
src/Pagination/PaginatorField.php 2 100.00%
src/Pagination/SimplePaginatorField.php 2 100.00%
src/Schema/AST/ASTBuilder.php 36 95.70%
src/Schema/AST/ASTHelper.php 46 96.03%
src/Schema/AST/DocumentAST.php 10 94.44%
src/Schema/AST/TypeNodeConverter.php 5 94.74%
src/Schema/Context.php 3 100.00%
src/Schema/DirectiveLocator.php 27 95.24%
src/Schema/Directives/AggregateDirective.php 6 100.00%
src/Schema/Directives/AllDirective.php 3 100.00%
src/Schema/Directives/ArgTraversalDirective.php 6 100.00%
src/Schema/Directives/AuthDirective.php 3 100.00%
src/Schema/Directives/BaseDirective.php 22 94.03%
src/Schema/Directives/BelongsToDirective.php 1 100.00%
src/Schema/Directives/BelongsToManyDirective.php 1 100.00%
src/Schema/Directives/BuilderDirective.php 6 100.00%
src/Schema/Directives/CacheDirective.php 17 92.73%
src/Schema/Directives/CacheKeyDirective.php 1 100.00%
src/Schema/Directives/CanDirective.php 19 95.08%
src/Schema/Directives/ComplexityDirective.php 3 100.00%
src/Schema/Directives/CountDirective.php 4 100.00%
src/Schema/Directives/CreateDirective.php 2 100.00%
src/Schema/Directives/DeleteDirective.php 11 95.83%
src/Schema/Directives/DeprecatedDirective.php 1 100.00%
src/Schema/Directives/EnumDirective.php 2 100.00%
src/Schema/Directives/EqDirective.php 7 100.00%
src/Schema/Directives/EventDirective.php 3 100.00%
src/Schema/Directives/FieldDirective.php 2 100.00%
src/Schema/Directives/FindDirective.php 3 100.00%
src/Schema/Directives/FirstDirective.php 2 100.00%
src/Schema/Directives/GuardDirective.php 9 92.59%
src/Schema/Directives/HasManyDirective.php 1 100.00%
src/Schema/Directives/HasOneDirective.php 1 100.00%
src/Schema/Directives/HashDirective.php 3 100.00%
src/Schema/Directives/InDirective.php 2 100.00%
src/Schema/Directives/InjectDirective.php 4 80.00%
src/Schema/Directives/InterfaceDirective.php 1 100.00%
src/Schema/Directives/LazyLoadDirective.php 5 50.00%
src/Schema/Directives/LikeDirective.php 7 95.45%
src/Schema/Directives/LimitDirective.php 10 83.87%
src/Schema/Directives/MethodDirective.php 3 100.00%
src/Schema/Directives/ModelDirective.php 3 100.00%
src/Schema/Directives/ModifyModelExistenceDirective.php 15 79.55%
src/Schema/Directives/MorphManyDirective.php 1 100.00%
src/Schema/Directives/MorphOneDirective.php 1 100.00%
src/Schema/Directives/MorphToDirective.php 1 100.00%
src/Schema/Directives/MorphToManyDirective.php 1 100.00%
src/Schema/Directives/MutationExecutorDirective.php 5 100.00%
src/Schema/Directives/NamespaceDirective.php 8 80.00%
src/Schema/Directives/NeqDirective.php 2 100.00%
src/Schema/Directives/NestDirective.php 2 100.00%
src/Schema/Directives/NotInDirective.php 2 100.00%
src/Schema/Directives/RelationDirective.php 15 100.00%
src/Schema/Directives/RelationDirectiveHelpers.php 6 100.00%
src/Schema/Directives/RenameArgsDirective.php 2 100.00%
src/Schema/Directives/RenameDirective.php 4 100.00%
src/Schema/Directives/SanitizeDirective.php 3 100.00%
src/Schema/Directives/ScalarDirective.php 1 100.00%
src/Schema/Directives/ScopeDirective.php 3 100.00%
src/Schema/Directives/SpreadDirective.php 2 100.00%
src/Schema/Directives/ThrottleDirective.php 14 97.87%
src/Schema/Directives/TransformArgsDirective.php 3 100.00%
src/Schema/Directives/TrimDirective.php 8 100.00%
src/Schema/Directives/UnionDirective.php 1 100.00%
src/Schema/Directives/UpdateDirective.php 2 100.00%
src/Schema/Directives/UpsertDirective.php 2 100.00%
src/Schema/Directives/WhereAuthDirective.php 3 100.00%
src/Schema/Directives/WhereBetweenDirective.php 2 100.00%
src/Schema/Directives/WhereDirective.php 2 100.00%
src/Schema/Directives/WhereJsonContainsDirective.php 2 100.00%
src/Schema/Directives/WhereNotBetweenDirective.php 2 100.00%
src/Schema/Directives/WithCountDirective.php 5 91.67%
src/Schema/Directives/WithDirective.php 4 100.00%
src/Schema/Directives/WithRelationDirective.php 2 100.00%
src/Schema/ExecutableTypeNodeConverter.php 4 100.00%
src/Schema/Factories/ArgumentFactory.php 4 100.00%
src/Schema/Factories/DirectiveFactory.php 5 100.00%
src/Schema/Factories/FieldFactory.php 3 100.00%
src/Schema/FallbackTypeNodeConverter.php 6 100.00%
src/Schema/ResolverProvider.php 5 100.00%
src/Schema/RootType.php 1 100.00%
src/Schema/SchemaBuilder.php 7 100.00%
src/Schema/Source/SchemaStitcher.php 7 100.00%
src/Schema/TypeRegistry.php 50 95.51%
src/Schema/Types/GraphQLSubscription.php 4 100.00%
src/Schema/Types/LaravelEnumType.php 4 83.33%
src/Schema/Types/NotFoundSubscription.php 2 0.00%
src/Schema/Types/Scalars/Date.php 2 100.00%
src/Schema/Types/Scalars/DateScalar.php 9 100.00%
src/Schema/Types/Scalars/DateTime.php 2 100.00%
src/Schema/Types/Scalars/DateTimeTz.php 2 100.00%
src/Schema/Types/Scalars/DateTimeUtc.php 2 100.00%
src/Schema/Types/Scalars/Upload.php 4 100.00%
src/Schema/Values/CacheValue.php 12 98.15%
src/Schema/Values/FieldValue.php 22 96.00%
src/Schema/Values/TypeValue.php 5 100.00%
src/Scout/ScoutEnhancer.php 16 98.04%
src/Scout/ScoutServiceProvider.php 1 100.00%
src/Scout/SearchDirective.php 4 100.00%
src/SoftDeletes/ForceDeleteDirective.php 4 100.00%
src/SoftDeletes/RestoreDirective.php 4 100.00%
src/SoftDeletes/SoftDeletesDirective.php 2 100.00%
src/SoftDeletes/SoftDeletesServiceProvider.php 3 100.00%
src/SoftDeletes/TrashedDirective.php 14 83.33%
src/Subscriptions/Authorizer.php 10 74.07%
src/Subscriptions/BroadcastManager.php 9 95.65%
src/Subscriptions/BroadcastSubscriptionJob.php 2 0.00%
src/Subscriptions/Broadcasters/EchoBroadcaster.php 5 80.00%
src/Subscriptions/Broadcasters/LogBroadcaster.php 7 30.00%
src/Subscriptions/Broadcasters/PusherBroadcaster.php 8 42.86%
src/Subscriptions/Directives/BroadcastDirective.php 2 81.82%
src/Subscriptions/Directives/SubscriptionDirective.php 1 0.00%
src/Subscriptions/Events/EchoSubscriptionEvent.php 3 100.00%
src/Subscriptions/ExceptionHandler.php 2 0.00%
src/Subscriptions/Iterators/AuthenticatingSyncIterator.php 5 95.00%
src/Subscriptions/Iterators/SyncIterator.php 3 87.50%
src/Subscriptions/Serializer.php 3 100.00%
src/Subscriptions/Storage/CacheStorageManager.php 18 93.10%
src/Subscriptions/Storage/RedisStorageManager.php 21 95.45%
src/Subscriptions/Subscriber.php 6 92.50%
src/Subscriptions/SubscriptionBroadcaster.php 5 87.10%
src/Subscriptions/SubscriptionController.php 2 50.00%
src/Subscriptions/SubscriptionGuard.php 3 33.33%
src/Subscriptions/SubscriptionRegistry.php 20 94.29%
src/Subscriptions/SubscriptionResolverProvider.php 6 83.87%
src/Subscriptions/SubscriptionRouter.php 2 37.50%
src/Subscriptions/SubscriptionServiceProvider.php 7 100.00%
src/Support/AppVersion.php 6 91.67%
src/Support/Compatibility/LaravelMiddlewareAdapter.php 3 0.00%
src/Support/Compatibility/LumenMiddlewareAdapter.php 3 0.00%
src/Support/DriverManager.php 15 91.43%
src/Support/Http/Controllers/GraphQLController.php 1 100.00%
src/Support/Http/Middleware/AcceptJson.php 1 100.00%
src/Support/Http/Middleware/AttemptAuthentication.php 6 100.00%
src/Support/Http/Middleware/LogGraphQLQueries.php 2 100.00%
src/Support/Http/Responses/MemoryStream.php 4 100.00%
src/Support/Http/Responses/ResponseStream.php 14 0.00%
src/Support/Http/Responses/Stream.php 2 100.00%
src/Support/Http/routes.php 0 92.31%
src/Support/Traits/GeneratesColumnsEnum.php 8 100.00%
src/Support/Traits/HasArgumentValue.php 2 60.00%
src/Support/Utils.php 12 77.42%
src/Testing/MakesGraphQLRequests.php 15 95.92%
src/Testing/MakesGraphQLRequestsLumen.php 15 0.00%
src/Testing/MockDirective.php 3 100.00%
src/Testing/MockResolver.php 1 0.00%
src/Testing/MockResolverService.php 2 100.00%
src/Testing/MocksResolvers.php 4 100.00%
src/Testing/TestResponseMixin.php 5 100.00%
src/Testing/TestResponseUtils.php 1 100.00%
src/Testing/TestSchemaProvider.php 2 100.00%
src/Testing/TestingServiceProvider.php 4 81.82%
src/Testing/UsesTestSchema.php 2 85.71%
src/Tracing/Tracing.php 10 97.30%
src/Tracing/TracingDirective.php 3 88.24%
src/Tracing/TracingServiceProvider.php 2 100.00%
src/Validation/BaseRulesDirective.php 27 98.31%
src/Validation/RulesDirective.php 1 100.00%
src/Validation/RulesForArrayDirective.php 3 100.00%
src/Validation/RulesGatherer.php 26 98.84%
src/Validation/ValidateDirective.php 4 100.00%
src/Validation/ValidationServiceProvider.php 1 100.00%
src/Validation/Validator.php 4 54.55%
src/Validation/ValidatorDirective.php 15 95.56%
src/WhereConditions/SQLOperator.php 11 100.00%
src/WhereConditions/WhereConditionsBaseDirective.php 19 100.00%
src/WhereConditions/WhereConditionsDirective.php 4 75.00%
src/WhereConditions/WhereConditionsServiceProvider.php 4 100.00%
src/WhereConditions/WhereHasConditionsDirective.php 7 86.36%
src/lighthouse.php 0 100.00%
Project Totals (272 files) 1670 89.91%
Loading