Improve coverage slightly
@@ -13,6 +13,22 @@ func TestIsWhitespace(t *testing.T) {
}
}
+func TestIsBinaryTrue(t *testing.T) {
+ DisableCheckBinary = false
+
+ if !isBinary(0 , 0) {
+ t.Errorf("Expected to be true")
+ }
+}
+
+func TestIsBinaryDisableCheck(t *testing.T) {
+ DisableCheckBinary = true
+
+ if isBinary(0 , 0) {
+ t.Errorf("Expected to be false")
+ }
+}
+
func TestCountStatsLines(t *testing.T) {
Trace = false
Debug = false
