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

Function TestIsBinary_EmptyData

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

Source from the content-addressed store, hash-verified

296}
297
298func TestIsBinary_EmptyData(t *testing.T) {
299 if IsBinary([]byte{}) {
300 t.Error("empty data should not be binary")
301 }
302}
303
304func TestIsBinary_PNGHeader(t *testing.T) {
305 png := []byte{0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a}

Callers

nothing calls this directly

Calls 2

IsBinaryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected