(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestRandomChars(t *testing.T) { |
| 42 | cache := make(map[string]bool) |
| 43 | for i := 0; i < 100; i++ { |
| 44 | chars, err := RandomChars(10) |
| 45 | if err != nil { |
| 46 | t.Fatal(err) |
| 47 | } |
| 48 | if cache[chars] { |
| 49 | t.Fatalf("Duplicated chars %q", chars) |
| 50 | } |
| 51 | cache[chars] = true |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func TestEllipsis(t *testing.T) { |
| 56 | tests := []struct { |
nothing calls this directly
no test coverage detected