mirror of
https://github.com/DominicBreuker/pspy.git
synced 2026-11-06 18:21:51 +00:00
use factory method in walker test
This commit is contained in:
1 parent
72bbfac3e0
commit
1e67dc332b
1 file changed
+1
-1
@@ -39,7 +39,7 @@ func TestWalk(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
w := &Walker{}
|
||||
w := NewWalker()
|
||||
dirCh, errCh, doneCh := w.Walk(tt.root, tt.depth)
|
||||
dirs, errs := getAllDirsAndErrors(dirCh, errCh)
|
||||
|
||||
|
||||
Reference in new issue
Block a user