File: ostree_test.go

package info (click to toggle)
golang-github-a8m-tree 0.0~git20201026.fce18e2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 160 kB
  • sloc: sh: 23; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package ostree

import (
	"testing"
)

func TestTree(t *testing.T) {
	actual := Print("testdata")
	expect := `testdata
├── a
│   └── b
│       └── b.txt
└── c
    └── c.txt
`
	if actual != expect {
		t.Errorf("\nactual\n%s\n != expect\n%s\n", actual, expect)
	}
}