(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestGenerateNotExistingToken(t *testing.T) { |
| 23 | count := 5 |
| 24 | token := GenerateNotExistingToken(func() string { |
| 25 | return fmt.Sprint(count) |
| 26 | }, func(token string) bool { |
| 27 | count-- |
| 28 | return token != "0" |
| 29 | }) |
| 30 | assert.Equal(t, "0", token) |
| 31 | } |
| 32 | |
| 33 | func TestBadCryptoReaderPanics(t *testing.T) { |
| 34 | assert.Panics(t, func() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…