go/src/go/token/position_test.go

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) {}

// FileSet.File should return nil if Pos is past the end of the FileSet.
func TestFileSetPastEnd(t *testing.T) {}

func TestFileSetCacheUnlikely(t *testing.T) {}

// issue 4345. Test that concurrent use of FileSet.Pos does not trigger a
// race in the FileSet position cache.
func TestFileSetRace(t *testing.T) {}

// issue 16548. Test that concurrent use of File.AddLine and FileSet.PositionFor
// does not trigger a race in the FileSet position cache.
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) {}