Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate vector-cast model. #179

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<gitHubRepo>jenkinsci/coverage-plugin</gitHubRepo>

<!-- Library Dependencies Versions -->
<coverage-model.version>0.45.0</coverage-model.version>
<coverage-model.version>0.44.0-rc783.3d62286c30d7</coverage-model.version>
<jsoup.version>1.17.2</jsoup.version>

<!-- Jenkins Plug-in Dependencies Versions -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ public String getDisplayName(final Metric metric) {
return Messages.Metric_LOC();
case TESTS:
return Messages.Metric_TESTS();
case MCDC_PAIR:
return Messages.Metric_MCDC_PAIR();
case FUNCTION_CALL:
return Messages.Metric_FUNCTION_CALL();
default:
throw new NoSuchElementException("No display name found for metric " + metric);
}
Expand Down Expand Up @@ -472,6 +476,10 @@ public String getLabel(final Metric metric) {
return Messages.Metric_Short_LOC();
case TESTS:
return Messages.Metric_Short_TESTS();
case MCDC_PAIR:
return Messages.Metric_Short_MCDC_PAIR();
case FUNCTION_CALL:
return Messages.Metric_Short_FUNCTION_CALL();
default:
throw new NoSuchElementException("No label found for metric " + metric);
}
Expand Down Expand Up @@ -527,6 +535,8 @@ public ListBoxModel getMetricItems() {
add(options, Metric.COMPLEXITY_MAXIMUM);
add(options, Metric.LOC);
add(options, Metric.TESTS);
add(options, Metric.MCDC_PAIR);
add(options, Metric.FUNCTION_CALL);
return options;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Metric.COMPLEXITY_DENSITY=Complexity Density
Metric.COMPLEXITY_MAXIMUM=Maximum Cyclomatic Complexity
Metric.LOC=Lines of Code
Metric.TESTS=Test Cases
Metric.MCDC_PAIR=MC/DC Pair Coverage
Metric.FUNCTION_CALL=Function Call Coverage

Metric.Short.CONTAINER=Container
Metric.Short.MODULE=Module
Expand All @@ -31,6 +33,8 @@ Metric.Short.COMPLEXITY_DENSITY=Complexity Density
Metric.Short.COMPLEXITY_MAXIMUM=Max. Complexity
Metric.Short.LOC=LOC
Metric.Short.TESTS=Tests
Metric.Short.MCDC_PAIR=MC/DC Pair
Metric.Short.FUNCTION_CALL=Function Call

Metric.MUTATION.Killed=Killed
Metric.MUTATION.Survived=Survived
Expand Down
Loading