diff options
author | Pierre-Nicolas Clauss <pinicarus@protonmail.com> | 2021-01-23 19:06:59 +0100 |
---|---|---|
committer | Pierre-Nicolas Clauss <pinicarus@protonmail.com> | 2021-01-23 19:06:59 +0100 |
commit | 0ac7595fe97607ae99757787eba19cf0870be00d (patch) | |
tree | 43bebcf52c3caf7a22d26b9309d0beb58aa144a9 /test/fixers/test_gofmt_fixer_callback.vader | |
parent | db96b007209f7ea0983c58cb1d18771f5a45a543 (diff) | |
parent | 9fd9435cd525b1d3c4470db0d514f72ed31cfece (diff) | |
download | ale-0ac7595fe97607ae99757787eba19cf0870be00d.zip |
Merge remote-tracking branch 'upstream/master'
Signed-off-by: Pierre-Nicolas Clauss <pinicarus@protonmail.com>
Diffstat (limited to 'test/fixers/test_gofmt_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_gofmt_fixer_callback.vader | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/test/fixers/test_gofmt_fixer_callback.vader b/test/fixers/test_gofmt_fixer_callback.vader index 16659655..99407173 100644 --- a/test/fixers/test_gofmt_fixer_callback.vader +++ b/test/fixers/test_gofmt_fixer_callback.vader @@ -21,10 +21,7 @@ Execute(The gofmt callback should return the correct default values): AssertEqual \ { - \ 'read_temporary_file': 1, - \ 'command': ale#Escape('xxxinvalid') - \ . ' -l -w' - \ . ' %t', + \ 'command': ale#Escape('xxxinvalid'), \ }, \ ale#fixers#gofmt#Fix(bufnr('')) @@ -35,11 +32,8 @@ Execute(The gofmt callback should include custom gofmt options): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' -l -w' - \ . ' ' . g:ale_go_gofmt_options - \ . ' %t', + \ . ' ' . g:ale_go_gofmt_options, \ }, \ ale#fixers#gofmt#Fix(bufnr('')) @@ -50,9 +44,7 @@ Execute(The gofmt callback should support Go environment variables): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Env('GO111MODULE', 'off') - \ . ale#Escape('xxxinvalid') . ' -l -w' - \ . ' %t', + \ . ale#Escape('xxxinvalid') \ }, \ ale#fixers#gofmt#Fix(bufnr('')) |