func checkPos(t *testing.T, msg string, got, want Position) { … }
func TestNoPos(t *testing.T) { … }
var tests …
func linecol(lines []int, offs int) (int, int) { … }
func verifyPositions(t *testing.T, fset *FileSet, f *File, lines []int) { … }
func makeTestSource(size int, lines []int) []byte { … }
func TestPositions(t *testing.T) { … }
func TestLineInfo(t *testing.T) { … }
func TestFiles(t *testing.T) { … }
func TestFileSetPastEnd(t *testing.T) { … }
func TestFileSetCacheUnlikely(t *testing.T) { … }
func TestFileSetRace(t *testing.T) { … }
func TestFileSetRace2(t *testing.T) { … }
func TestPositionFor(t *testing.T) { … }
func TestLineStart(t *testing.T) { … }
func TestRemoveFile(t *testing.T) { … }
func TestFileAddLineColumnInfo(t *testing.T) { … }
func TestIssue57490(t *testing.T) { … }