mirror of
https://github.com/octoleo/restic.git
synced 2024-06-26 04:22:36 +00:00
17 lines
289 B
Go
17 lines
289 B
Go
package restic_test
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/restic/restic/internal/restic"
|
|
. "github.com/restic/restic/internal/test"
|
|
)
|
|
|
|
func TestNewSnapshot(t *testing.T) {
|
|
paths := []string{"/home/foobar"}
|
|
|
|
_, err := restic.NewSnapshot(paths, nil, "foo", time.Now())
|
|
OK(t, err)
|
|
}
|