17func TestIsWhitespace(t *testing.T) {
18 if !isWhitespace(' ') {
19▶ t.Errorf("Expected to be true")
20 }
21}
· · ·
25
26 if !isBinary(0, 0) {
27▶ t.Errorf("Expected to be true")
28 }
29}
· · ·
33
34 if isBinary(0, 0) {
35▶ t.Errorf("Expected to be false")
36 }
37}
· · ·
51 CountStats(&fileJob)
52 if fileJob.Lines != 0 {
53▶ t.Errorf("Zero lines expected got %d", fileJob.Lines)
54 }
55
· · ·
60 CountStats(&fileJob)
61 if fileJob.Lines != 1 {
62▶ t.Errorf("One line expected got %d", fileJob.Lines)
63 }
64
+ 126 more matches in this file