diff options
author | w0rp <devw0rp@gmail.com> | 2018-03-18 17:16:13 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-03-18 17:16:13 +0000 |
commit | c112ee9dff2a44d733556dc9440f6d1c15f41f15 (patch) | |
tree | 736996783bdba392895f05484e2cd6efec71d810 /test/command_callback/test_gotype_command_callback.vader | |
parent | bdd8d2399f59f32c5531d168a1f9402d42d9b299 (diff) | |
download | ale-c112ee9dff2a44d733556dc9440f6d1c15f41f15.zip |
Fix #1392 - Only check files on disk for gotype
Diffstat (limited to 'test/command_callback/test_gotype_command_callback.vader')
-rw-r--r-- | test/command_callback/test_gotype_command_callback.vader | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/command_callback/test_gotype_command_callback.vader b/test/command_callback/test_gotype_command_callback.vader index f95e8423..ec98627c 100644 --- a/test/command_callback/test_gotype_command_callback.vader +++ b/test/command_callback/test_gotype_command_callback.vader @@ -5,15 +5,9 @@ Before: After: call ale#linter#Reset() - -Execute(The gotype callback should include other files from the directory but exclude the file itself): - let dir = expand('#' . bufnr('') . ':p:h') - AssertEqual - \ "gotype %t ". ale#Escape(ale#path#Simplify(dir . "/testfile.go")), - \ ale_linters#go#gotype#GetCommand(bufnr('')) +Execute(The default gotype command should be correct): + AssertEqual 'gotype %s', ale_linters#go#gotype#GetCommand(bufnr('')) Execute(The gotype callback should ignore test files): call ale#test#SetFilename('bla_test.go') - AssertEqual - \ 0, - \ ale_linters#go#gotype#GetCommand(bufnr('')) + AssertEqual 0, ale_linters#go#gotype#GetCommand(bufnr('')) |