mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +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 {
|
for i, tt := range tests {
|
||||||
w := &Walker{}
|
w := NewWalker()
|
||||||
dirCh, errCh, doneCh := w.Walk(tt.root, tt.depth)
|
dirCh, errCh, doneCh := w.Walk(tt.root, tt.depth)
|
||||||
dirs, errs := getAllDirsAndErrors(dirCh, errCh)
|
dirs, errs := getAllDirsAndErrors(dirCh, errCh)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user