(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestBase64(t *testing.T) { |
| 15 | roundtrip := func(in []byte) bool { |
| 16 | b1 := config.Base64(in) |
| 17 | txt, err := b1.MarshalText() |
| 18 | if err != nil { |
| 19 | return false |
| 20 | } |
| 21 | out := new(config.Base64) |
| 22 | if err := out.UnmarshalText(txt); err != nil { |
| 23 | return false |
| 24 | } |
| 25 | return bytes.Equal(in, []byte(*out)) |
| 26 | } |
| 27 | if err := quick.Check(roundtrip, nil); err != nil { |
| 28 | t.Error(err) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestAuthUnmarshal(t *testing.T) { |
| 33 | t.Run("PSK", func(t *testing.T) { |
nothing calls this directly
no test coverage detected