addtional unit test · boyter/scc@f0fa7a5

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

}