Skip to content

Commit

Permalink
lint: uncomment tests
Browse files Browse the repository at this point in the history
Uncomment tests that were previously disabled due to a breaking change
in revive.

This effectively reverts 15ae652.
  • Loading branch information
bhcleek committed Dec 25, 2024
1 parent 105c459 commit 858bb88
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion autoload/go/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function! go#complete#Complete(findstart, base) abort
let s:completions = l:state.matches

return go#lsp#lsp#PositionOf(getline(l:line+1), l:state.start-1)

else "findstart = 0 when we need to return the list of completions
return s:completions
endif
Expand Down
36 changes: 18 additions & 18 deletions autoload/go/lint_test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -512,25 +512,25 @@ func! Test_Lint() abort
call s:testLint()
endfunc

"func! Test_Lint_GOPATH() abort
" let g:go_gopls_enabled = 0
" let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')
" let RestoreGOPATH = go#util#SetEnv('GOPATH', fnameescape(fnamemodify(getcwd(), ':p')) . 'test-fixtures/lint')
"
" call s:testLint()
"
" call call(RestoreGOPATH, [])
" call call(RestoreGO111MODULE, [])
"endfunc
func! Test_Lint_GOPATH() abort
let g:go_gopls_enabled = 0
let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')
let RestoreGOPATH = go#util#SetEnv('GOPATH', fnameescape(fnamemodify(getcwd(), ':p')) . 'test-fixtures/lint')

"func! Test_Lint_NullModule() abort
" let g:go_gopls_enabled = 0
" let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')
"
" call s:testLint()
"
" call call(RestoreGO111MODULE, [])
"endfunc
call s:testLint()

call call(RestoreGOPATH, [])
call call(RestoreGO111MODULE, [])
endfunc

func! Test_Lint_NullModule() abort
let g:go_gopls_enabled = 0
let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')

call s:testLint()

call call(RestoreGO111MODULE, [])
endfunc

func! Test_Errcheck() abort
let g:go_gopls_enabled = 0
Expand Down

0 comments on commit 858bb88

Please sign in to comment.