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

Function TestDecodeBase64Output_Clean

internal/sessions/transfer_test.go:952–963  ·  view source on GitHub ↗

=================================================================== G. Base64 Output Decoding Tests ===================================================================

(t *testing.T)

Source from the content-addressed store, hash-verified

950// ===================================================================
951
952func TestDecodeBase64Output_Clean(t *testing.T) {
953 original := []byte("Hello, world!")
954 b64 := base64.StdEncoding.EncodeToString(original)
955
956 decoded, err := DecodeBase64Output(b64)
957 if err != nil {
958 t.Fatalf("decode error: %v", err)
959 }
960 if string(decoded) != "Hello, world!" {
961 t.Errorf("decoded mismatch: %q", decoded)
962 }
963}
964
965func TestDecodeBase64Output_WithExitCode(t *testing.T) {
966 original := []byte("Hello, world!")

Callers

nothing calls this directly

Calls 1

DecodeBase64OutputFunction · 0.85

Tested by

no test coverage detected