2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-28 14:40:49 +00:00
restic/internal/restic/snapshot_test.go

17 lines
299 B
Go
Raw Normal View History

2014-12-05 20:45:49 +00:00
package restic_test
2014-08-04 18:47:04 +00:00
import (
"testing"
2017-09-02 17:28:09 +00:00
"time"
2014-08-04 18:47:04 +00:00
2017-07-24 15:42:25 +00:00
"github.com/restic/restic/internal/restic"
2017-10-02 13:06:39 +00:00
rtest "github.com/restic/restic/internal/test"
2014-08-04 18:47:04 +00:00
)
func TestNewSnapshot(t *testing.T) {
paths := []string{"/home/foobar"}
2017-09-02 17:28:09 +00:00
_, err := restic.NewSnapshot(paths, nil, "foo", time.Now())
2017-10-02 13:06:39 +00:00
rtest.OK(t, err)
2014-08-04 18:47:04 +00:00
}