(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestRandomString(t *testing.T) { |
| 70 | r1 := randomString(10) |
| 71 | r2 := randomString(10) |
| 72 | |
| 73 | if r1 == r2 { |
| 74 | t.Errorf("expected two different strings, got %#v", r1) |
| 75 | } |
| 76 | |
| 77 | if l := len(r1); l != 10 { |
| 78 | t.Errorf("expected string of length %d, got string of length %d", 10, l) |
| 79 | } |
| 80 | } |
nothing calls this directly
no test coverage detected