(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestKeyWithNewLine(t *testing.T) { |
| 52 | w, err := NewKeyFromURL(`otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP |
| 53 | `) |
| 54 | require.NoError(t, err) |
| 55 | sec := w.Secret() |
| 56 | require.Equal(t, "JBSWY3DPEHPK3PXP", sec) |
| 57 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…