mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 08:44:02 +00:00
19 lines
278 B
Go
19 lines
278 B
Go
package restic_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/restic/restic"
|
|
. "github.com/restic/restic/test"
|
|
)
|
|
|
|
func TestNewSnapshot(t *testing.T) {
|
|
s := SetupRepo(t)
|
|
defer TeardownRepo(t, s)
|
|
|
|
paths := []string{"/home/foobar"}
|
|
|
|
_, err := restic.NewSnapshot(paths)
|
|
OK(t, err)
|
|
}
|