- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFileReadAtMost (2.98 sec)
-
pkg/util/tail/tail_test.go
limitations under the License. */ package tail import ( "os" "strings" "testing" ) func TestReadAtMost(t *testing.T) { file, err := os.CreateTemp("", "TestFileReadAtMost") if err != nil { t.Fatalf("unable to create temp file") } defer os.Remove(file.Name()) line := strings.Repeat("a", blockSize) testBytes := []byte(line + "\n" + line + "\n" + line + "\n" +
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 2.3K bytes - Viewed (0)