2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-28 09:38:39 +00:00
restic/internal/restic/snapshot_test.go

17 lines
299 B
Go
Raw Normal View History

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