github.com/mckael/restic@v0.8.3/internal/restic/snapshot_test.go (about) 1 package restic_test 2 3 import ( 4 "testing" 5 "time" 6 7 "github.com/restic/restic/internal/restic" 8 rtest "github.com/restic/restic/internal/test" 9 ) 10 11 func TestNewSnapshot(t *testing.T) { 12 paths := []string{"/home/foobar"} 13 14 _, err := restic.NewSnapshot(paths, nil, "foo", time.Now()) 15 rtest.OK(t, err) 16 }