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
|
|
|
)
|
|
|
|
|
2015-04-29 20:59:06 -04: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
|
|
|
}
|