(t *testing.T)
| 290 | } |
| 291 | |
| 292 | func TestIsBinary_InvalidUTF8(t *testing.T) { |
| 293 | if !IsBinary([]byte{0xff, 0xfe, 0x00}) { |
| 294 | t.Error("invalid UTF-8 should be binary") |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | func TestIsBinary_EmptyData(t *testing.T) { |
| 299 | if IsBinary([]byte{}) { |