Assert that archiver.Tree implements fmt.Stringer
This commit is contained in:
parent
79b882e901
commit
5e2afd91e7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue