mirror of
https://github.com/octoleo/restic.git
synced 2024-11-11 07:41:03 +00:00
17 lines
299 B
Go
17 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)
|
|
}
|