diff options
author | toastal <toastal@protonmail.com> | 2020-12-21 10:26:09 +0700 |
---|---|---|
committer | toastal <toastal@protonmail.com> | 2020-12-21 10:26:09 +0700 |
commit | 9c7e1fe4ddb6729d2518b4102ae203ac00f8bc05 (patch) | |
tree | 53cc5b0b1e8036269a13535f6a65542ae40aa72e /test/fixers/test_gofmt_fixer_callback.vader | |
parent | 42e4b148616981234425b31d2858c62f30e4153d (diff) | |
parent | f996ede5999c99b1b3e3cecc02dbd06cb286d3ff (diff) | |
download | ale-9c7e1fe4ddb6729d2518b4102ae203ac00f8bc05.zip |
merging master
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('')) |