-
Task
-
Resolution: Fixed
-
P4
-
None
-
None
-
b93
Code coverage in Joni is still lacking after the switch to use it as default regexp engine. Current numbers:
Name #classes %method %block %branch %line
jdk.nashorn.internal.runtime.regexp.joni 38 54% (427/795) 43% (2173/5002) 37% (1699/4599) 44% (2766/6229)
jdk.nashorn.internal.runtime.regexp.joni.ast 12 45% (92/203) 36% (266/730) 29% (142/490) 37% (290/791)
jdk.nashorn.internal.runtime.regexp.joni.bench 4 0% (0/9) 0% (0/26) 0% (0/12) 0% (0/43)
jdk.nashorn.internal.runtime.regexp.joni.constants 4 50% (8/16) 50% (8/16) - 76% (32/42)
jdk.nashorn.internal.runtime.regexp.joni.encoding 5 42% (5/12) 29% (5/17) 0% (0/4) 26% (11/42)
jdk.nashorn.internal.runtime.regexp.joni.exception 4 50% (3/6) 50% (3/6) - 50% (6/12)
Two ways to improve this, either remove unused code or add tests.
Name #classes %method %block %branch %line
jdk.nashorn.internal.runtime.regexp.joni 38 54% (427/795) 43% (2173/5002) 37% (1699/4599) 44% (2766/6229)
jdk.nashorn.internal.runtime.regexp.joni.ast 12 45% (92/203) 36% (266/730) 29% (142/490) 37% (290/791)
jdk.nashorn.internal.runtime.regexp.joni.bench 4 0% (0/9) 0% (0/26) 0% (0/12) 0% (0/43)
jdk.nashorn.internal.runtime.regexp.joni.constants 4 50% (8/16) 50% (8/16) - 76% (32/42)
jdk.nashorn.internal.runtime.regexp.joni.encoding 5 42% (5/12) 29% (5/17) 0% (0/4) 26% (11/42)
jdk.nashorn.internal.runtime.regexp.joni.exception 4 50% (3/6) 50% (3/6) - 50% (6/12)
Two ways to improve this, either remove unused code or add tests.