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

Function TestIsBinary_PlainText

internal/sessions/transfer_test.go:274–278  ·  view source on GitHub ↗

=================================================================== A. Binary Detection Tests ===================================================================

(t *testing.T)

Source from the content-addressed store, hash-verified

272// ===================================================================
273
274func TestIsBinary_PlainText(t *testing.T) {
275 if IsBinary([]byte("Hello, world!")) {
276 t.Error("plain ASCII should not be binary")
277 }
278}
279
280func TestIsBinary_UTF8Text(t *testing.T) {
281 if IsBinary([]byte("こんにちは世界")) {

Callers

nothing calls this directly

Calls 2

IsBinaryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected