mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
Assert that archiver.Tree implements fmt.Stringer
This commit is contained in:
parent
79b882e901
commit
5e2afd91e7
@ -1,6 +1,7 @@
|
|||||||
package archiver
|
package archiver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
@ -10,6 +11,9 @@ import (
|
|||||||
restictest "github.com/restic/restic/internal/test"
|
restictest "github.com/restic/restic/internal/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// debug.Log requires Tree.String.
|
||||||
|
var _ fmt.Stringer = Tree{}
|
||||||
|
|
||||||
func TestPathComponents(t *testing.T) {
|
func TestPathComponents(t *testing.T) {
|
||||||
var tests = []struct {
|
var tests = []struct {
|
||||||
p string
|
p string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user