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) {
9494
9595 String testcase = getAttributeValue ( "locFile" , flaw );
9696 testcase = testcase .substring ( testcase .lastIndexOf ('/' ) );
97- if ( testcase .startsWith ( "Benchmark " ) ) {
97+ if ( testcase .startsWith ( "BenchmarkTest " ) ) {
9898 String testno = testcase .substring ( "BenchmarkTest" .length (), testcase .length () -5 );
9999 tcr .setNumber ( Integer .parseInt ( testno ) );
100100 return tcr ;
@@ -126,7 +126,7 @@ private TestCaseResult parseFlowViol(Node flaw) {
126126
127127 String testcase = getAttributeValue ( "locFile" , flaw );
128128 testcase = testcase .substring ( testcase .lastIndexOf ('/' ) + 1 );
129- if ( testcase .startsWith ( "Benchmark " ) ) {
129+ if ( testcase .startsWith ( "BenchmarkTest " ) ) {
130130 String testno = testcase .substring ( "BenchmarkTest" .length (), testcase .length () -5 );
131131 tcr .setNumber ( Integer .parseInt ( testno ) );
132132 return tcr ;
@@ -168,4 +168,4 @@ private int cweLookup(String cat) {
168168
169169}
170170
171-
171+
You can’t perform that action at this time.
0 commit comments