• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 2854
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 12 Dec 2017 03:58AM UTC
Jobs 1
Files 179
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2854

push

travis-ci

leebyron
Better Predicates

Introduces new predicate and assertion functions for each kind of type mirroring the existing ones for the higher order types. It also includes predicates for directives and schema. This should remove the need to use `instanceof` in any usage of GraphQL.js

This consolidates the checking of instances which generalizes the cross-realm/multiple-module check so that the clearer error message is provided in nearly all scenarios, reducing confusion.

This also replaces nearly all `instanceof` with new predicate functions internally.

Fixes #1134

4032 of 4516 branches covered (89.28%)

503 of 503 new or added lines in 30 files covered. (100.0%)

9972 of 10094 relevant lines covered (98.79%)

1437.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/jsutils/instanceOf.js
1
100.0
src/utilities/isValidLiteralValue.js
1
100.0
src/utilities/valueFromAST.js
2
100.0
src/utilities/astFromValue.js
2
100.0
src/utilities/findBreakingChanges.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/type/schema.js
1
100.0
src/execution/values.js
2
100.0
src/type/validate.js
2
100.0
src/validation/rules/OverlappingFieldsCanBeMerged.js
2
100.0
src/utilities/coerceValue.js
2
100.0
src/utilities/extendSchema.js
3
100.0
src/utilities/buildASTSchema.js
3
100.0
src/utilities/schemaPrinter.js
4
100.0
src/type/introspection.js
4
100.0
src/utilities/findBreakingChanges.js
7
100.0
src/utilities/buildClientSchema.js
8
100.0
src/execution/execute.js
9
100.0
src/type/definition.js
Jobs
ID Job ID Ran Files Coverage
1 2854.1 12 Dec 2017 03:58AM UTC 0
98.79
Travis Job 2854.1
Source Files on build 2854
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2854
  • 5df345b0 on github
  • Prev Build on better-predicates (#2852)
  • Next Build on better-predicates (#2856)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc