Description: Check gopls works
 The test content itself is a bit pointless, but it can at
 least proof that go support isn't entirely broken.
Author: David Kalnischkies <donkult@debian.org>
Forwarded: not-needed

--- /dev/null
+++ b/test/gopls.test.vim
@@ -0,0 +1,27 @@
+function! SetUp()
+  let g:ycm_auto_trigger = 1
+  let g:ycm_keep_logfiles = 1
+  let g:ycm_log_level = 'DEBUG'
+
+  call youcompleteme#test#setup#SetUp()
+endfunction
+
+function! TearDown()
+  call youcompleteme#test#setup#CleanUp()
+endfunction
+
+function! Test_gopls_Fixit_Works()
+  call youcompleteme#test#setup#OpenFile( '/debian/tests/data/fixit.go', {} )
+  call setpos( '.', [ 0, 2, 5 ] )
+  call assert_equal( 'import ( "fmt" )', getline( '.' ) )
+  function! SelectEntry( id ) closure
+    redraw
+    call test_feedinput( "1\<CR>" )
+  endfunction
+  call timer_start( 2000, funcref( 'SelectEntry' ) )
+  YcmCompleter FixIt
+  redraw
+  call assert_equal( '', getline( 2 ) )
+  %bwipeout!
+  delfunction SelectEntry
+endfunction
