Skip to content

Commit 8a0bce5

Browse files
committed
Add test for helptags
1 parent 20bcbd2 commit 8a0bce5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

test/help.vim

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
let s:suite = themis#suite('help')
2+
3+
function! s:suite.after() abort
4+
if filereadable('doc/tags')
5+
call delete('doc/tags')
6+
endif
7+
endfunction
8+
9+
function! s:suite.make_helptags() abort
10+
" Detect E154
11+
helptags doc
12+
endfunction
13+
14+
function! s:suite.__modules__() abort
15+
let modules = themis#suite('helptags for module')
16+
17+
function! modules.before() abort
18+
helptags doc
19+
endfunction
20+
21+
function! modules.__each_modules__() abort
22+
let V = vital#of('vital')
23+
for module_name in V.search('**')
24+
let module = V.import(module_name)
25+
let suite = themis#suite(module_name)
26+
for func_name in keys(module)
27+
let tagname = printf('Vital.%s.%s()', module_name, func_name)
28+
execute join([
29+
\ printf('function! suite.%s()', func_name),
30+
\ printf(' help %s', tagname),
31+
\ 'endfunction',
32+
\ ], "\n")
33+
endfor
34+
endfor
35+
endfunction
36+
endfunction

0 commit comments

Comments
 (0)