(t *testing.T, env *testenv.CLITest, out map[string]*snapshot.DirEntry, root object.ID, prefix string)
| 410 | } |
| 411 | |
| 412 | func mustListDirEntries(t *testing.T, env *testenv.CLITest, out map[string]*snapshot.DirEntry, root object.ID, prefix string) { |
| 413 | t.Helper() |
| 414 | |
| 415 | var dir1 snapshot.DirManifest |
| 416 | |
| 417 | testutil.MustParseJSONLines(t, env.RunAndExpectSuccess(t, "show", root.String()), &dir1) |
| 418 | |
| 419 | for _, v := range dir1.Entries { |
| 420 | out[prefix+v.Name] = v |
| 421 | |
| 422 | if v.Type == snapshot.EntryTypeDirectory { |
| 423 | mustListDirEntries(t, env, out, v.ObjectID, prefix+v.Name+"/") |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | func mustWriteFileWithRepeatedData(t *testing.T, fname string, repeat int, data []byte) { |
| 429 | t.Helper() |
no test coverage detected