Ran
|
Jobs
3
|
Files
116
|
Run time
6min
|
Badge
README BADGES
|
push
travis-ci
<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
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 2388.1 | 116 |
84.43 |
Travis Job 2388.1 | |
2 | 2388.2 | 116 |
84.43 |
Travis Job 2388.2 | |
3 | 2388.3 | 116 |
84.43 |
Travis Job 2388.3 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|---|---|---|---|---|---|---|---|---|
10.46 | lib/api/ParsoidService.js | 255 | 115 | 16 | 99 | 3.0 | 0 | 38 | |
12.61 | lib/api/apiUtils.js | 621 | 220 | 45 | 175 | 12.0 | 0 | 137 | |
27.5 | lib/language/LanguageSr.js | 91 | 30 | 11 | 19 | 19.0 | 0 | 10 | |
31.25 | lib/logger/LintLogger.js | 134 | 54 | 19 | 35 | 257.0 | 6 | 20 | |
32.43 | lib/utils/Diff.js | 330 | 190 | 68 | 122 | 1117.0 | 28 | 78 | |
38.94 | lib/utils/ContentUtils.js | 289 | 130 | 57 | 73 | 243272.0 | 24 | 54 | |
40.61 | lib/parse.js | 283 | 121 | 58 | 63 | 5.0 | 22 | 54 | |
41.27 | tools/ScriptUtils.js | 509 | 105 | 48 | 57 | 16815.0 | 30 | 54 | |
47.62 | lib/language/Language.js | 63 | 15 | 8 | 7 | 27.0 | 2 | 4 | |
52.94 | lib/language/LanguageEn.js | 40 | 13 | 9 | 4 | 3.0 | 0 | 4 |