File: test_rustfmt_fixer_callback.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (16 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Before:
  call ale#assert#SetUpFixerTest('rust', 'rustfmt')

After:
  call ale#assert#TearDownFixerTest()

Execute(The rustfmt callback should return the correct default values):
  call ale#test#SetFilename('../test-files/rust/testfile.rs')

  AssertFixer {'command': ale#Escape('rustfmt')}

Execute(The rustfmt callback should include custom rustfmt options):
  let g:ale_rust_rustfmt_options = "--skip-children"
  call ale#test#SetFilename('../test-files/rust/testfile.rs')

  AssertFixer {'command': ale#Escape('rustfmt') . ' ' . g:ale_rust_rustfmt_options}