Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 0.836 kb
syntax on
set runtimepath+=~/.bundle/vim-unittest/ " edit this on test
set runtimepath+=./test/mock/
set runtimepath+=./
" mock
function! giti#system(command)"{{{
let b:system_called_with = a:command
return 'mocked_system'
endfunction"}}}
function! giti#system_with_specifics(arg)"{{{
let b:system_with_specifics_called_with = a:arg
return 'mocked_system_with_specifics'
endfunction"}}}
function! giti#execute(command)"{{{
let b:execute_called_with = a:command
return 'mocked_execute'
endfunction"}}}
function! giti#put(string, ...)"{{{
let b:put_called_with_list = [a:string, a:0 > 0 ? a:1 : '']
return 'mocked_put'
endfunction"}}}
function! giti#diffthis()"{{{
return 'mocked_diffthis'
endfunction"}}}
function! giti#print(string)"{{{
let b:print_called_with = a:string
return 'mocked_print'
endfunction"}}}
Jump to Line
Something went wrong with that request. Please try again.