2014-12-05 20:45:49 +00:00
|
|
|
package restic_test
|
2014-08-04 18:47:04 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2014-12-05 20:45:49 +00:00
|
|
|
"github.com/restic/restic"
|
2015-04-09 19:15:48 +00:00
|
|
|
. "github.com/restic/restic/test"
|
2014-08-04 18:47:04 +00:00
|
|
|
)
|
|
|
|
|
2015-04-30 00:59:06 +00:00
|
|
|
func TestNewSnapshot(t *testing.T) {
|
2015-05-09 11:32:52 +00:00
|
|
|
s := SetupRepo(t)
|
|
|
|
defer TeardownRepo(t, s)
|
2014-09-23 20:39:12 +00:00
|
|
|
|
2015-04-30 00:59:06 +00:00
|
|
|
paths := []string{"/home/foobar"}
|
|
|
|
|
|
|
|
_, err := restic.NewSnapshot(paths)
|
|
|
|
OK(t, err)
|
2014-08-04 18:47:04 +00:00
|
|
|
}
|