Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions test/help.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
let s:suite = themis#suite('help')

function! s:suite.after() abort
if filereadable('doc/tags')
call delete('doc/tags')
endif
endfunction

function! s:suite.__modules__() abort
let modules = themis#suite('helptags for module')

function! modules.before() abort
helptags doc
endfunction

function! modules.__each_modules__() abort
let t_func = type(function('type'))
let V = vital#vital#new()
for module_name in V.search('**')
if module_name =~# '^\%(Deprecated\|Experimental\)\.'
continue
endif
let module = V.import(module_name)
let suite = themis#suite(module_name)
for member_name in keys(module)
let args = type(module[member_name]) == t_func ? '()' : ''
let tagname = printf('Vital.%s.%s%s', module_name, member_name, args)
execute join([
\ printf('function! suite.%s()', member_name),
\ printf(' help %s', tagname),
\ 'endfunction',
\ ], "\n")
endfor
endfor
endfunction
endfunction