(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func Test_GetRandString(t *testing.T) { |
| 19 | randStr := GetRandString(12) |
| 20 | rand1 := GetRandString(12) |
| 21 | rand2 := GetRandString(12) |
| 22 | rand3 := GetRandString(12) |
| 23 | if rand1 == rand2 || rand2 == rand3 || rand1 == rand3 { |
| 24 | t.Error("rand result is same") |
| 25 | } else { |
| 26 | t.Log("GetRandString:", randStr) |
| 27 | test.Equal(t, 12, len(randStr)) |
| 28 | } |
| 29 | } |
nothing calls this directly
no test coverage detected