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

wikimedia / parsoid / 2388
85%

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

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%)

86180.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2388.1 21 Mar 2019 04:22AM UTC 0
84.43
Travis Job 2388.1
2 2388.2 21 Mar 2019 04:19AM UTC 0
84.43
Travis Job 2388.2
3 2388.3 21 Mar 2019 04:26AM UTC 0
84.43
Travis Job 2388.3
Source Files on build 2388
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2388
  • 9f0780d8 on github
  • Prev Build on master (#2387)
  • Next Build on master (#2389)
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