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
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package archiver
import (
"fmt"
"path/filepath"
"runtime"
"testing"
@ -10,6 +11,9 @@ import (
restictest "github.com/restic/restic/internal/test"
)
// debug.Log requires Tree.String.
var _ fmt.Stringer = Tree{}
func TestPathComponents(t *testing.T) {
var tests = []struct {
p string