MCPcopy Index your code
hub / github.com/kopia/kopia / mustSaveSnapshot

Function mustSaveSnapshot

internal/diff/diff_test.go:578–585  ·  view source on GitHub ↗
(t *testing.T, rep repo.RepositoryWriter, man *snapshot.Manifest)

Source from the content-addressed store, hash-verified

576}
577
578func mustSaveSnapshot(t *testing.T, rep repo.RepositoryWriter, man *snapshot.Manifest) manifest.ID {
579 t.Helper()
580
581 id, err := snapshot.SaveSnapshot(testlogging.Context(t), rep, man)
582 require.NoError(t, err, "saving snapshot")
583
584 return id
585}
586
587func getSnapshotSource() snapshot.SourceInfo {
588 src := snapshot.SourceInfo{

Callers 2

TestGetPrecedingSnapshotFunction · 0.70

Calls 3

SaveSnapshotFunction · 0.92
ContextFunction · 0.92
HelperMethod · 0.80

Tested by

no test coverage detected