func TestSearchForEnclosing(t *testing.T) { … } // posAt returns the token.Pos corresponding to the 1-based (line, column) // coordinates in the file fname of fset. func posAt(line, column int, fset *token.FileSet, fname string) token.Pos { … } // newInfo returns a types.Info with all maps populated. func newInfo() *types.Info { … }