mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 03:34:50 +00:00
use factory method in walker test
This commit is contained in:
@@ -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