(t testing.TB, exp string, fn func() string)
| 747 | } |
| 748 | |
| 749 | func runUntilErrorStr(t testing.TB, exp string, fn func() string) { |
| 750 | var got string |
| 751 | for range 100 { |
| 752 | if got = fn(); got == exp { |
| 753 | break |
| 754 | } |
| 755 | } |
| 756 | require.Equal(t, exp, got) |
| 757 | } |
| 758 | |
| 759 | func helpTestDir(t testing.TB) (dir string, cleanup func()) { |
| 760 | name := fmt.Sprintf("%v_%v", t.Name(), time.Now().Nanosecond()) |
no test coverage detected