Add tests.

This commit is contained in:
Andy Stewart
2014-11-14 14:06:49 +01:00
parent dfe985a1a6
commit 6cef76aa99
6 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
--- Signs ---
Signs for fileAddedToGit.tmp:
line=1 id=3000 name=GitGutterLineAdded

View File

@@ -0,0 +1,12 @@
source helper.vim
let tmpfile = 'fileAddedToGit.tmp'
call system('touch '.tmpfile)
call system('git add '.tmpfile)
execute 'edit '.tmpfile
normal ihello
write
call DumpSigns('fileAddedToGit')
call system('git reset HEAD '.tmpfile)
call system('rm '.tmpfile)

View File

@@ -0,0 +1,6 @@
source helper.vim
let tmpfile = tempname()
call system('touch '.tmpfile)
edit tmpfile
call DumpSigns('untrackedFileOutsideRepo')

View File

@@ -0,0 +1,8 @@
source helper.vim
let tmpfile = 'untrackedFileWithinRepo.tmp'
call system('touch '.tmpfile)
edit tmpfile
call DumpSigns('untrackedFileWithinRepo')
call system('rm '.tmpfile)

View File

@@ -0,0 +1,2 @@
--- Signs ---

View File

@@ -0,0 +1,2 @@
--- Signs ---