forked from TrueCloudLab/restic
16 lines
299 B
Go
16 lines
299 B
Go
package restic_test
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/restic/restic/internal/restic"
|
|
rtest "github.com/restic/restic/internal/test"
|
|
)
|
|
|
|
func TestNewSnapshot(t *testing.T) {
|
|
paths := []string{"/home/foobar"}
|
|
|
|
_, err := restic.NewSnapshot(paths, nil, "foo", time.Now())
|
|
rtest.OK(t, err)
|
|
}
|