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

MyIntervals / emogrifier / 10927064312
96%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2024 05:21PM UTC
Jobs 1
Files 12
Run time 1min
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 Sep 2024 05:21PM UTC coverage: 96.943% (-0.4%) from 97.301%
10927064312

push

github

web-flow
[CLEANUP] Add `CssInliner::querySelectorAll` method (#1316)

This `private` method provides functionality that is used in three separate
places (albeit a one-liner), and includes taking care of exception handling
according to the debug mode setting.

The new method and parameter names match the equivalent in the
[Web API](
  https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
).

There will be a tiny performance impact due to additional method calls.  But the
benefits include code re-use and common error handling.

Also add `ensureNodeIsElement` method for use with the result from
`querySelectorAll` to ensure type safety.  `querySelectorAll` should always
return a `DOMNodeList` of `DOMElement`s.  But this cannot be guaranteed if there
is a bug in CssSelector whereby it returns an XPath expression which may match
non-element nodes.  And it would (probably) be sub-optimal for
`querySelectorAll` to have an extra loop checking this, when it can be done in
the caller's loop over the returned data.

21 of 29 new or added lines in 1 file covered. (72.41%)

761 of 785 relevant lines covered (96.94%)

274.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10927064312.1 18 Sep 2024 05:21PM UTC 0
96.94
GitHub Action Run
Source Files on build 10927064312
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10927064312
  • 919f5c4e on github
  • Prev Build on main (#10901645911)
  • Next Build on main (#10936059983)
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