summaryrefslogtreecommitdiffstats
path: root/stdout/stdout_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'stdout/stdout_test.go')
-rw-r--r--stdout/stdout_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/stdout/stdout_test.go b/stdout/stdout_test.go
index c4808ad..48f9c08 100644
--- a/stdout/stdout_test.go
+++ b/stdout/stdout_test.go
@@ -26,6 +26,21 @@ func TestAnalyzePath(t *testing.T) {
assert.Contains(t, output.String(), "nested")
}
+func TestAnalyzeSubdir(t *testing.T) {
+ fin := testdir.CreateTestDir()
+ defer fin()
+
+ buff := make([]byte, 10)
+ output := bytes.NewBuffer(buff)
+
+ ui := CreateStdoutUI(output, false, false, false)
+ ui.SetIgnoreDirPaths([]string{"/xxx"})
+ ui.AnalyzePath("test_dir/nested", nil)
+ ui.StartUILoop()
+
+ assert.Contains(t, output.String(), "file2")
+}
+
func TestAnalyzePathWithErr(t *testing.T) {
buff := make([]byte, 10)
output := bytes.NewBuffer(buff)