(f *testing.F)
| 111 | } |
| 112 | |
| 113 | func FuzzBase64Encode(f *testing.F) { |
| 114 | f.Add([]byte("hello")) |
| 115 | f.Fuzz(func(t *testing.T, input []byte) { |
| 116 | result := Base64Decode(Base64Encode(input)) |
| 117 | for i := 0; i < len(input); i++ { |
| 118 | if result[i] != input[i] { |
| 119 | t.Fatalf("with input '%s' - expected '%s', got '%s' (mismatch at position %d)", input, input, result, i) |
| 120 | } |
| 121 | } |
| 122 | }) |
| 123 | } |
nothing calls this directly
no test coverage detected