=================================================================== G. Base64 Output Decoding Tests ===================================================================
(t *testing.T)
| 950 | // =================================================================== |
| 951 | |
| 952 | func 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 | |
| 965 | func TestDecodeBase64Output_WithExitCode(t *testing.T) { |
| 966 | original := []byte("Hello, world!") |
nothing calls this directly
no test coverage detected