File: test_zigfmt_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 (20 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  call ale#assert#SetUpFixerTest('zig', 'zigfmt')

After:
  call ale#assert#TearDownFixerTest()

Execute(The zig callback should return the correct default values):
  AssertFixer {
  \    'command': ale#Escape('zig') . ' fmt %t',
  \    'read_temporary_file': 1,
  \}

Execute(The zig callback should allow custom zig executables):
  let g:ale_zig_zigfmt_executable = 'foo/bar'

  AssertFixer {
  \    'command': ale#Escape('foo/bar') . ' fmt %t',
  \    'read_temporary_file': 1,
  \}