(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestTokenHavePrefix(t *testing.T) { |
| 14 | for i := 0; i < 50; i++ { |
| 15 | assert.True(t, strings.HasPrefix(GenerateApplicationToken(), "A")) |
| 16 | assert.True(t, strings.HasPrefix(GenerateClientToken(), "C")) |
| 17 | assert.True(t, strings.HasPrefix(GeneratePluginToken(), "P")) |
| 18 | assert.NotEmpty(t, GenerateImageName()) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestGenerateNotExistingToken(t *testing.T) { |
| 23 | count := 5 |
nothing calls this directly
no test coverage detected
searching dependent graphs…