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

wikimedia / parsoid / 2388 / 2
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 21 Mar 2019 04:19AM UTC
Files 116
Run time 7s
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

21 Mar 2019 03:42AM UTC coverage: 84.434%. Remained the same
2388.2

push

travis-ci

tstarling
<a href="https://github.com/wikimedia/parsoid/commit/9f0780d8c">Use instanceof for token types

instanceof works, and implemented efficiently: the class_entry*
for the RHS is cached in the opline, so it just has to walk the
inheritance chain for the LHS, which is usually pretty short.

For memory efficiency, remove Token::$type, just get it from reflection
since it is always equal to the class name.

Remove TokenUtils::isOfType() since it is adequately served by
instanceof and is_string(). Leave in getTokenType(), since although it
has no remaining callers, it could conceivably be useful.

Change-Id: I</a><a class="double-link" href="https://github.com/wikimedia/parsoid/commit/8ba4f9f6a">8ba4f9f6a</a>

9553 of 12024 branches covered (79.45%)

14868 of 17609 relevant lines covered (84.43%)

28726.78 hits per line

Source Files on job 2388.2
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2242
  • Travis Job 2388.2
  • 9f0780d8 on github
  • Prev Job for on master (#2387.2)
  • Next Job for on master (#2389.2)
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