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

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

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

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

4011 of 4525 branches covered (88.64%)

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

9709 of 9857 relevant lines covered (98.5%)

1471.19 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
Jobs
ID Job ID Ran Files Coverage
1 2851.1 12 Dec 2017 02:10AM UTC 0
98.5
Travis Job 2851.1
Source Files on build 2851
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2851
  • 1dd7a13d on github
  • Next Build on better-predicates (#2852)
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