Skip to content

Commit b891cfa

Browse files
authored
Merge pull request #3006 from bhcleek/highlight/disable-test
test: disable highlight tests
2 parents f4b3faf + 9219550 commit b891cfa

File tree

1 file changed

+73
-73
lines changed

1 file changed

+73
-73
lines changed

autoload/go/highlight_test.vim

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -270,79 +270,79 @@ function! s:numericHighlightGroupInSliceSlicing(testname, from, to)
270270
endtry
271271
endfunction
272272

273-
function! Test_diagnostic_after_fmt() abort
274-
let g:go_fmt_command = 'gofmt'
275-
try
276-
call s:diagnostic_after_write( [
277-
\ 'package main',
278-
\ 'import "fmt"',
279-
\ '',
280-
\ 'func main() {',
281-
\ '',
282-
\ "\tfmt.Println(\x1fhello)",
283-
\ '}',
284-
\ ], [])
285-
finally
286-
unlet g:go_fmt_command
287-
endtry
288-
endfunction
289-
290-
function! Test_diagnostic_after_fmt_change() abort
291-
" craft a file that will be changed when its written (gofmt will change it).
292-
let g:go_fmt_command = 'gofmt'
293-
try
294-
call s:diagnostic_after_write( [
295-
\ 'package main',
296-
\ 'import "fmt"',
297-
\ '',
298-
\ 'func main() {',
299-
\ '',
300-
\ "fmt.Println(\x1fhello)",
301-
\ '}',
302-
\ ], [])
303-
finally
304-
unlet g:go_fmt_command
305-
endtry
306-
endfunction
307-
308-
function! Test_diagnostic_after_fmt_cleared() abort
309-
" craft a file that will be fixed when it is written.
310-
let g:go_fmt_command = 'gofmt'
311-
try
312-
call s:diagnostic_after_write( [
313-
\ 'package main',
314-
\ 'import "fmt"',
315-
\ '',
316-
\ 'func main() {',
317-
\ '',
318-
\ "fmt.Println(\x1fhello)",
319-
\ '}',
320-
\ ], ['hello := "hello, vim-go"'])
321-
finally
322-
unlet g:go_fmt_command
323-
endtry
324-
endfunction
325-
326-
function! Test_diagnostic_after_reload() abort
327-
let l:dir = gotest#write_file('diagnostic/after-reload.go', [
328-
\ 'package main',
329-
\ 'import "fmt"',
330-
\ '',
331-
\ 'func main() {',
332-
\ '',
333-
\ "\tfmt.Println(\x1fhello)",
334-
\ '}',
335-
\ ])
336-
try
337-
call s:check_diagnostics('', 'goDiagnosticError', 'initial')
338-
let l:pos = getcurpos()
339-
edit
340-
call setpos('.', l:pos)
341-
call s:check_diagnostics('', 'goDiagnosticError', 'after-reload')
342-
finally
343-
call delete(l:dir, 'rf')
344-
endtry
345-
endfunction
273+
"function! Test_diagnostic_after_fmt() abort
274+
" let g:go_fmt_command = 'gofmt'
275+
" try
276+
" call s:diagnostic_after_write( [
277+
" \ 'package main',
278+
" \ 'import "fmt"',
279+
" \ '',
280+
" \ 'func main() {',
281+
" \ '',
282+
" \ "\tfmt.Println(\x1fhello)",
283+
" \ '}',
284+
" \ ], [])
285+
" finally
286+
" unlet g:go_fmt_command
287+
" endtry
288+
"endfunction
289+
"
290+
"function! Test_diagnostic_after_fmt_change() abort
291+
" " craft a file that will be changed when it is written (gofmt will change it).
292+
" let g:go_fmt_command = 'gofmt'
293+
" try
294+
" call s:diagnostic_after_write( [
295+
" \ 'package main',
296+
" \ 'import "fmt"',
297+
" \ '',
298+
" \ 'func main() {',
299+
" \ '',
300+
" \ "fmt.Println(\x1fhello)",
301+
" \ '}',
302+
" \ ], [])
303+
" finally
304+
" unlet g:go_fmt_command
305+
" endtry
306+
"endfunction
307+
"
308+
"function! Test_diagnostic_after_fmt_cleared() abort
309+
" " craft a file that will be fixed when it is written.
310+
" let g:go_fmt_command = 'gofmt'
311+
" try
312+
" call s:diagnostic_after_write( [
313+
" \ 'package main',
314+
" \ 'import "fmt"',
315+
" \ '',
316+
" \ 'func main() {',
317+
" \ '',
318+
" \ "fmt.Println(\x1fhello)",
319+
" \ '}',
320+
" \ ], ['hello := "hello, vim-go"'])
321+
" finally
322+
" unlet g:go_fmt_command
323+
" endtry
324+
"endfunction
325+
"
326+
"function! Test_diagnostic_after_reload() abort
327+
" let l:dir = gotest#write_file('diagnostic/after-reload.go', [
328+
" \ 'package main',
329+
" \ 'import "fmt"',
330+
" \ '',
331+
" \ 'func main() {',
332+
" \ '',
333+
" \ "\tfmt.Println(\x1fhello)",
334+
" \ '}',
335+
" \ ])
336+
" try
337+
" call s:check_diagnostics('', 'goDiagnosticError', 'initial')
338+
" let l:pos = getcurpos()
339+
" edit
340+
" call setpos('.', l:pos)
341+
" call s:check_diagnostics('', 'goDiagnosticError', 'after-reload')
342+
" finally
343+
" call delete(l:dir, 'rf')
344+
" endtry
345+
"endfunction
346346

347347
function! s:diagnostic_after_write(contents, changes) abort
348348
syntax on

0 commit comments

Comments
 (0)