Skip to content

Commit 001e8a0

Browse files
committed
cleanup: removed old commented test cases
1 parent 35ca722 commit 001e8a0

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

action_test.go

-27
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ func TestActionList404(t *testing.T) {
1414
}`
1515
filter := NewTestFilter(t, corefile)
1616
filter.Build()
17-
// if filter.blockTree.Len() != 0 {
18-
// t.Error("block tree should be empty")
19-
// }
2017
if len(filter.blockDomains) != 0 {
2118
t.Error("block domains should be empty")
2219
}
@@ -31,12 +28,6 @@ func TestActionListDomain(t *testing.T) {
3128
}`
3229
filter := NewTestFilter(t, corefile)
3330
filter.Build()
34-
// if filter.blockTree.Len() != 2 {
35-
// t.Errorf(
36-
// "expected two domains; found %d",
37-
// filter.blockTree.Len(),
38-
// )
39-
// }
4031
if len(filter.blockDomains) != 2 {
4132
t.Errorf(
4233
"expected two domains; found %d",
@@ -94,12 +85,6 @@ func TestActionMissingFile(t *testing.T) {
9485
}`
9586
filter := NewTestFilter(t, corefile)
9687
filter.Build()
97-
// if filter.blockTree.Len() != 0 {
98-
// t.Errorf(
99-
// "expected no domains; found %d",
100-
// filter.blockTree.Len(),
101-
// )
102-
// }
10388
if len(filter.blockDomains) != 0 {
10489
t.Errorf(
10590
"expected no domains; found %d",
@@ -114,12 +99,6 @@ func TestActionHTTPList(t *testing.T) {
11499
}`
115100
filter := NewTestFilter(t, corefile)
116101
filter.Build()
117-
// if filter.blockTree.Len() == 0 {
118-
// t.Errorf(
119-
// "expected domains from remote list; found %d",
120-
// filter.blockTree.Len(),
121-
// )
122-
// }
123102
if len(filter.blockDomains) == 0 {
124103
t.Errorf(
125104
"expected domains from remote list; found %d",
@@ -134,12 +113,6 @@ func TestActionNonExistentHTTPList(t *testing.T) {
134113
}`
135114
filter := NewTestFilter(t, corefile)
136115
filter.Build()
137-
// if filter.blockTree.Len() != 0 {
138-
// t.Errorf(
139-
// "expected no domains from non-existent remote list; found %d",
140-
// filter.blockTree.Len(),
141-
// )
142-
// }
143116
if len(filter.blockDomains) != 0 {
144117
t.Errorf(
145118
"expected no domains from non-existent remote list; found %d",

0 commit comments

Comments
 (0)