func TestPaths(t *testing.T) { … } type pathTest … func testPath(prog *loader.Program, test pathTest) error { … } // TestSourceAndExportData uses objectpath to compute a correspondence // of objects between two versions of the same package, one loaded from // source, the other from export data. func TestSourceAndExportData(t *testing.T) { … } func objectString(obj types.Object) string { … } // TestOrdering uses objectpath over two Named types with the same method // names but in a different source order and checks that objectpath is the // same for methods with the same name. func TestOrdering(t *testing.T) { … }