(tb testing.TB, dir, fn string, numlines int)
| 53 | } |
| 54 | |
| 55 | func makeTestLog(tb testing.TB, dir, fn string, numlines int) string { |
| 56 | tb.Helper() |
| 57 | |
| 58 | fn = dir + "/" + fn |
| 59 | |
| 60 | f, err := os.Create(fn) |
| 61 | if err != nil { |
| 62 | tb.Fatalf("can't create test log file: %v", err) |
| 63 | } |
| 64 | defer f.Close() |
| 65 | |
| 66 | writeTestLog(tb, f, numlines) |
| 67 | |
| 68 | return fn |
| 69 | } |
| 70 | |
| 71 | func writeTestLog(tb testing.TB, w io.Writer, numlines int) { |
| 72 | tb.Helper() |
no test coverage detected