File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/owasp/benchmark/score/parsers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ private TestCaseResult parseStdViol(Node flaw) {
94
94
95
95
String testcase = getAttributeValue ( "locFile" , flaw );
96
96
testcase = testcase .substring ( testcase .lastIndexOf ('/' ) );
97
- if ( testcase .startsWith ( "Benchmark " ) ) {
97
+ if ( testcase .startsWith ( "BenchmarkTest " ) ) {
98
98
String testno = testcase .substring ( "BenchmarkTest" .length (), testcase .length () -5 );
99
99
tcr .setNumber ( Integer .parseInt ( testno ) );
100
100
return tcr ;
@@ -126,7 +126,7 @@ private TestCaseResult parseFlowViol(Node flaw) {
126
126
127
127
String testcase = getAttributeValue ( "locFile" , flaw );
128
128
testcase = testcase .substring ( testcase .lastIndexOf ('/' ) + 1 );
129
- if ( testcase .startsWith ( "Benchmark " ) ) {
129
+ if ( testcase .startsWith ( "BenchmarkTest " ) ) {
130
130
String testno = testcase .substring ( "BenchmarkTest" .length (), testcase .length () -5 );
131
131
tcr .setNumber ( Integer .parseInt ( testno ) );
132
132
return tcr ;
@@ -168,4 +168,4 @@ private int cweLookup(String cat) {
168
168
169
169
}
170
170
171
-
171
+
You can’t perform that action at this time.
0 commit comments