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

mozilla / fathom / 110 / 1
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
Files 9
Run time 0s
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

18 Jan 2017 10:14PM UTC coverage: 91.786% (-0.2%) from 92.029%
110.1

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.

514 of 560 relevant lines covered (91.79%)

31.55 hits per line

Source Files on job 110.1
  • Tree
  • List 0
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 110
  • Travis Job 110.1
  • 1f8f2ae2 on github
  • Prev Job for on 2.0dev (#109.1)
  • Next Job for on 2.0dev (#111.1)
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