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

Function TestIsBinary_PNGHeader

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

Source from the content-addressed store, hash-verified

302}
303
304func TestIsBinary_PNGHeader(t *testing.T) {
305 png := []byte{0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a}
306 if !IsBinary(png) {
307 t.Error("PNG header should be binary")
308 }
309}
310
311// ===================================================================
312// B. Agent Profile Matching Tests

Callers

nothing calls this directly

Calls 2

IsBinaryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected