2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-02 00:50:48 +00:00

Assert that archiver.Tree implements fmt.Stringer

This commit is contained in:
greatroar 2020-02-26 10:52:58 +01:00
parent 79b882e901
commit 5e2afd91e7

View File

@ -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