(t *testing.T, e *testenv.CLITest)
| 82 | } |
| 83 | |
| 84 | func mustListSnapshots(t *testing.T, e *testenv.CLITest) []*snapshot.Manifest { |
| 85 | t.Helper() |
| 86 | |
| 87 | var cliSnapshots []cli.SnapshotManifest |
| 88 | |
| 89 | testutil.MustParseJSONLines(t, e.RunAndExpectSuccess(t, "snapshot", "list", "--json"), &cliSnapshots) |
| 90 | |
| 91 | snapshots := make([]*snapshot.Manifest, 0, len(cliSnapshots)) |
| 92 | |
| 93 | for _, s := range cliSnapshots { |
| 94 | snapshots = append(snapshots, s.Manifest) |
| 95 | } |
| 96 | |
| 97 | return snapshot.SortByTime(snapshots, false) |
| 98 | } |
no test coverage detected