(t *testing.T)
| 135 | tailTest.Cleanup(tail, true) |
| 136 | } |
| 137 | func TestOver4096ByteLineWithSetMaxLineSize(t *testing.T) { |
| 138 | tailTest := NewTailTest("Over4096ByteLineMaxLineSize", t) |
| 139 | testString := strings.Repeat("a", 4097) |
| 140 | tailTest.CreateFile("test.txt", "test\n"+testString+"\nhello\nworld\n") |
| 141 | tail := tailTest.StartTail("test.txt", Config{Follow: true, Location: nil, MaxLineSize: 4097}) |
| 142 | go tailTest.VerifyTailOutput(tail, []string{"test", testString, "hello", "world"}, false) |
| 143 | |
| 144 | // Delete after a reasonable delay, to give tail sufficient time |
| 145 | // to read all lines. |
| 146 | <-time.After(100 * time.Millisecond) |
| 147 | tailTest.RemoveFile("test.txt") |
| 148 | tailTest.Cleanup(tail, true) |
| 149 | } |
| 150 | |
| 151 | func TestLocationFull(t *testing.T) { |
| 152 | tailTest := NewTailTest("location-full", t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…