(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func TestStreamingFileModTime(t *testing.T) { |
| 79 | data := []byte("data") |
| 80 | f1 := StreamingFileFromReader("f1", io.NopCloser(bytes.NewReader(data))) |
| 81 | mt := time.Date(2021, 1, 2, 3, 4, 5, 0, time.UTC) |
| 82 | f2 := StreamingFileWithModTimeFromReader("f2", mt, io.NopCloser(bytes.NewReader(data))) |
| 83 | |
| 84 | assert.True(t, f1.ModTime().After(f2.ModTime())) |
| 85 | } |
| 86 | |
| 87 | func TestStreamingFileGetReader(t *testing.T) { |
| 88 | // Create a temporary file with test data |
nothing calls this directly
no test coverage detected