testFileHandlerForDir returns a fileHandler and parsed URL for a temp directory.
(t *testing.T, dir string)
| 233 | |
| 234 | // testFileHandlerForDir returns a fileHandler and parsed URL for a temp directory. |
| 235 | func testFileHandlerForDir(t *testing.T, dir string) (*fileHandler, *url.URL) { |
| 236 | t.Helper() |
| 237 | uri, err := url.Parse(dir) |
| 238 | require.NoError(t, err) |
| 239 | return NewFileHandler(uri), uri |
| 240 | } |
| 241 | |
| 242 | // writeMasterManifestToDir writes a MasterManifest to dir/manifest.json. |
| 243 | func writeMasterManifestToDir(t *testing.T, dir string, manifests []*Manifest) { |
no test coverage detected