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

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

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 12 Dec 2017 02:20AM UTC
Jobs 1
Files 178
Run time 7s
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
2852

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

4007 of 4521 branches covered (88.63%)

262 of 262 new or added lines in 27 files covered. (100.0%)

9709 of 9857 relevant lines covered (98.5%)

1471.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/jsutils/instanceOf.js
1
100.0
src/utilities/coerceValue.js
1
100.0
src/utilities/isValidLiteralValue.js
1
100.0
src/utilities/schemaPrinter.js
2
100.0
src/utilities/astFromValue.js
2
100.0
src/utilities/findBreakingChanges.js
2
100.0
src/utilities/valueFromAST.js
14
100.0
src/type/definition.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
17
100.0
src/type/definition.js
Jobs
ID Job ID Ran Files Coverage
1 2852.1 12 Dec 2017 02:20AM UTC 0
98.5
Travis Job 2852.1
Source Files on build 2852
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2852
  • b7486797 on github
  • Prev Build on better-predicates (#2851)
  • Next Build on better-predicates (#2854)
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