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
|
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…
Reference in a new issue