@@ -512,25 +512,25 @@ func! Test_Lint() abort
512
512
call s: testLint ()
513
513
endfunc
514
514
515
- " func! Test_Lint_GOPATH() abort
516
- " let g:go_gopls_enabled = 0
517
- " let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')
518
- " let RestoreGOPATH = go#util#SetEnv('GOPATH', fnameescape(fnamemodify(getcwd(), ':p')) . 'test-fixtures/lint')
519
- "
520
- " call s:testLint()
521
- "
522
- " call call(RestoreGOPATH, [])
523
- " call call(RestoreGO111MODULE, [])
524
- " endfunc
515
+ func ! Test_Lint_GOPATH () abort
516
+ let g: go_gopls_enabled = 0
517
+ let RestoreGO111MODULE = go#util#SetEnv (' GO111MODULE' , ' off' )
518
+ let RestoreGOPATH = go#util#SetEnv (' GOPATH' , fnameescape (fnamemodify (getcwd (), ' :p' )) . ' test-fixtures/lint' )
525
519
526
- " func! Test_Lint_NullModule() abort
527
- " let g:go_gopls_enabled = 0
528
- " let RestoreGO111MODULE = go#util#SetEnv('GO111MODULE', 'off')
529
- "
530
- " call s:testLint()
531
- "
532
- " call call(RestoreGO111MODULE, [])
533
- " endfunc
520
+ call s: testLint ()
521
+
522
+ call call (RestoreGOPATH, [])
523
+ call call (RestoreGO111MODULE, [])
524
+ endfunc
525
+
526
+ func ! Test_Lint_NullModule () abort
527
+ let g: go_gopls_enabled = 0
528
+ let RestoreGO111MODULE = go#util#SetEnv (' GO111MODULE' , ' off' )
529
+
530
+ call s: testLint ()
531
+
532
+ call call (RestoreGO111MODULE, [])
533
+ endfunc
534
534
535
535
func ! Test_Errcheck () abort
536
536
let g: go_gopls_enabled = 0
0 commit comments