MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestIsBinary_InvalidUTF8

Function TestIsBinary_InvalidUTF8

internal/sessions/transfer_test.go:292–296  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

IsBinaryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected