Skip to content

Commit f0fa7a5

Browse files
committed
addtional unit test
1 parent 08974a2 commit f0fa7a5

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

SCC-OUTPUT-REPORT.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<tbody><tr>
1313
<th>Go</th>
1414
<th>36</th>
15-
<th>8888</th>
16-
<th>1428</th>
15+
<th>8899</th>
16+
<th>1431</th>
1717
<th>422</th>
18-
<th>7038</th>
19-
<th>1417</th>
20-
<th>351833</th>
18+
<th>7046</th>
19+
<th>1419</th>
20+
<th>352051</th>
2121
</tr><tr>
2222
<th>Java</th>
2323
<th>24</th>
@@ -381,12 +381,12 @@
381381
</tr><tr>
382382
<th>HTML</th>
383383
<th>1</th>
384-
<th>635</th>
384+
<th>617</th>
385385
<th>0</th>
386386
<th>0</th>
387-
<th>635</th>
387+
<th>617</th>
388388
<th>0</th>
389-
<th>9251</th>
389+
<th>9000</th>
390390
</tr><tr>
391391
<th>JSON</th>
392392
<th>1</th>
@@ -607,11 +607,11 @@
607607
<tfoot><tr>
608608
<th>Total</th>
609609
<th>176</th>
610-
<th>26734</th>
611-
<th>3025</th>
610+
<th>26727</th>
611+
<th>3028</th>
612612
<th>1758</th>
613-
<th>21951</th>
614-
<th>2401</th>
615-
<th>1808723</th>
613+
<th>21941</th>
614+
<th>2403</th>
615+
<th>1808690</th>
616616
</tr></tfoot>
617617
</table></body></html>

processor/processor_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ func TestProcessConstants(t *testing.T) {
1919
}
2020
}
2121

22+
func TestProcessConstantsPathExclude(t *testing.T) {
23+
PathDenyList = []string{"testing/"}
24+
ProcessConstants()
25+
26+
if PathDenyList[0] != "testing" {
27+
t.Error("expected / to be trimmed")
28+
}
29+
30+
PathDenyList = []string{}
31+
}
32+
2233
func TestConfigureGc(t *testing.T) {
2334
ConfigureGc()
2435
}

0 commit comments

Comments
 (0)