(t *testing.T)
| 1981 | } |
| 1982 | |
| 1983 | func TestEncodeBase64_CorrectlyEncodes(t *testing.T) { |
| 1984 | t.Parallel() |
| 1985 | for _, tc := range base64Cases { |
| 1986 | t.Run(tc.name, func(t *testing.T) { |
| 1987 | got, err := script.Echo(tc.decoded).EncodeBase64().String() |
| 1988 | if err != nil { |
| 1989 | t.Fatal(err) |
| 1990 | } |
| 1991 | if got != tc.encoded { |
| 1992 | t.Logf("input %q incorrectly encoded:", tc.decoded) |
| 1993 | t.Error(cmp.Diff(tc.encoded, got)) |
| 1994 | } |
| 1995 | }) |
| 1996 | } |
| 1997 | } |
| 1998 | |
| 1999 | func TestDecodeBase64_CorrectlyDecodes(t *testing.T) { |
| 2000 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…