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

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

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 04 Dec 2017 08:37PM UTC
Jobs 1
Files 171
Run time 20s
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
2691

push

travis-ci

leebyron
Fix infinite loop on invalid queries in OverlappingFields

`OverlappingFieldsCanBeMerged` would infinite loop when passed something like

```graphql
fragment A on User {
  name
  ...A
}
```

It's not `OverlappingFieldsCanBeMerged`'s responsibility to detect that validation error, but we still would ideally avoid infinite looping.

This detects that case, and pretends that the infinite spread wasn't there for the purposes of this validation step.

Also, by memoizing and checking for self-references this removes duplicate reports.

Closes #780

3874 of 4359 branches covered (88.87%)

34 of 34 new or added lines in 2 files covered. (100.0%)

9442 of 9553 relevant lines covered (98.84%)

1289.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/validation/rules/OverlappingFieldsCanBeMerged.js
Jobs
ID Job ID Ran Files Coverage
1 2691.1 04 Dec 2017 08:37PM UTC 0
98.84
Travis Job 2691.1
Source Files on build 2691
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2691
  • 904adaca on github
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