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

mozilla / fathom / 110
92%
master: 86%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/fathom/json5-2.2.3
DEFAULT BRANCH: master
Ran 18 Jan 2017 10:15PM UTC
Jobs 1
Files 9
Run time 1s
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
110

push

travis-ci

erikrose
Now you can ask any fnode for a score, note, or type, and you'll get the truth, even if it didn't happen to be computed yet.

This removes the user's need to care about Fathom's laziness, as far as I can recall right now.

As a bonus, this allows us to avoid eager-computing the entire ruleset when a ruleset is asked about a specific DOM node: now it can just happily return fnodes which compute on demand.

Factor out the non-eager bits into dedicated "soFar" routines on Fnode so tests that test our laziness could still call them and so, in one place, the executor wouldn't get into an infinite recursion.

Remove the TODO about enumerating the types on a fnode. We won't provide a way to enumerate them—at least not without a compelling demonstration that it's useful—as that would require running an entire ruleset to exhaustion. Making callers ask about types individually using hasType() lets us remain lazy. Making hasType() eager-compute the asked-about type makes this pattern usable for situations where you're interested in whether the page as a whole is classified as various types.

17 of 17 new or added lines in 3 files covered. (100.0%)

514 of 560 relevant lines covered (91.79%)

31.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
fnode.js
Jobs
ID Job ID Ran Files Coverage
1 110.1 18 Jan 2017 10:15PM UTC 0
91.79
Travis Job 110.1
Source Files on build 110
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #110
  • 1f8f2ae2 on github
  • Prev Build on 2.0dev (#109)
  • Next Build on 2.0dev (#111)
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