(t *testing.T, env *testenv.CLITest)
| 386 | } |
| 387 | |
| 388 | func mustGetContentMap(t *testing.T, env *testenv.CLITest) map[content.ID]content.Info { |
| 389 | t.Helper() |
| 390 | |
| 391 | var contents1 []content.Info |
| 392 | |
| 393 | testutil.MustParseJSONLines(t, env.RunAndExpectSuccess(t, "content", "ls", "--json"), &contents1) |
| 394 | |
| 395 | contentMap := map[content.ID]content.Info{} |
| 396 | for _, v := range contents1 { |
| 397 | contentMap[v.ContentID] = v |
| 398 | } |
| 399 | |
| 400 | return contentMap |
| 401 | } |
| 402 | |
| 403 | func mustGetFileMap(t *testing.T, env *testenv.CLITest, root object.ID) map[string]*snapshot.DirEntry { |
| 404 | t.Helper() |
no test coverage detected