Skip to content

Commit de4cf5d

Browse files
committed
Add hidden file test
Only ack is failing at this test
1 parent 26e0ecb commit de4cf5d

12 files changed

+90
-0
lines changed

tests/hidden.vim

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
let g:EasyGrepMode=0
3+
GrepRoot hidden
4+
5+
" no hidden files
6+
let g:EasyGrepHidden=0
7+
ResultListTag GrepAdd c g:EasyGrepHidden=0
8+
GrepAdd c
9+
ResultListTag GrepAdd C g:EasyGrepHidden=0
10+
GrepAdd C
11+
12+
" hidden files
13+
let g:EasyGrepHidden=1
14+
ResultListTag GrepAdd c g:EasyGrepHidden=1
15+
GrepAdd c
16+
ResultListTag GrepAdd C g:EasyGrepHidden=1
17+
GrepAdd C
18+
19+
cclose
20+
exe "ResultListSave ".testname.".out"
21+
quit!
22+
23+

tests/hidden_ack.ok

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
|1 col 1| GrepAdd c g:EasyGrepHidden=0
2+
|1 col 1| GrepAdd C g:EasyGrepHidden=0
3+
|1 col 1| GrepAdd c g:EasyGrepHidden=1
4+
hidden\.hiddenfile|1 col 0| 29:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+
|1 col 1| GrepAdd C g:EasyGrepHidden=1
6+
hidden\.hiddenfile|1 col 0| 3:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

tests/hidden_ack.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="hidden_ack"
3+
GrepProgram ack
4+
5+
source hidden.vim
6+

tests/hidden_ag.ok

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
|1 col 1| GrepAdd c g:EasyGrepHidden=0
2+
|1 col 1| GrepAdd C g:EasyGrepHidden=0
3+
|1 col 1| GrepAdd c g:EasyGrepHidden=1
4+
hidden\.hiddenfile|1 col 0| 29:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+
|1 col 1| GrepAdd C g:EasyGrepHidden=1
6+
hidden\.hiddenfile|1 col 0| 3:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

tests/hidden_ag.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="hidden_ag"
3+
GrepProgram ag
4+
5+
source hidden.vim
6+

tests/hidden_grep.ok

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
|1 col 1| GrepAdd c g:EasyGrepHidden=0
2+
|1 col 1| GrepAdd C g:EasyGrepHidden=0
3+
|1 col 1| GrepAdd c g:EasyGrepHidden=1
4+
hidden\.hiddenfile|1 col 0| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+
|1 col 1| GrepAdd C g:EasyGrepHidden=1
6+
hidden\.hiddenfile|1 col 0| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

tests/hidden_grep.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="hidden_grep"
3+
GrepProgram grep
4+
5+
source hidden.vim
6+

tests/hidden_pt.ok

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
|1 col 1| GrepAdd c g:EasyGrepHidden=0
2+
|1 col 1| GrepAdd C g:EasyGrepHidden=0
3+
|1 col 1| GrepAdd c g:EasyGrepHidden=1
4+
hidden\.hiddenfile|1 col 0| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+
|1 col 1| GrepAdd C g:EasyGrepHidden=1
6+
hidden\.hiddenfile|1 col 0| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

tests/hidden_pt.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="hidden_pt"
3+
GrepProgram pt
4+
5+
source hidden.vim
6+

tests/hidden_vimgrep.ok

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
|1 col 1| GrepAdd c g:EasyGrepHidden=0
2+
|1 col 1| GrepAdd C g:EasyGrepHidden=0
3+
|1 col 1| GrepAdd c g:EasyGrepHidden=1
4+
.\hidden\.hiddenfile|1 col 29| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+
|1 col 1| GrepAdd C g:EasyGrepHidden=1
6+
.\hidden\.hiddenfile|1 col 3| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

tests/hidden_vimgrep.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="hidden_vimgrep"
3+
GrepProgram vimgrep
4+
5+
source hidden.vim
6+

tests/vimgrep.suite

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ exclusions_grep.vim
2424
exclusions_pt.vim
2525
exclusions_vimgrep.vim
2626

27+
# hidden
28+
hidden_ack.vim
29+
hidden_ag.vim
30+
hidden_grep.vim
31+
hidden_pt.vim
32+
hidden_vimgrep.vim
33+
2734
# recursion
2835
recursion_ack.vim
2936
recursion_ag.vim

0 commit comments

Comments
 (0)