func TestClientServer_Issue528(t *testing.T) { // FindLocation with Receiver.MethodName syntax does not work // on remote package names due to a bug in debug/gosym that // Was fixed in go 1.7 // Commit that fixes the issue in go: // f744717d1924340b8f5e5a385e99078693ad9097 ver, _ := proc.ParseVersionString(runtime.Version()) if ver.Major > 0 && !ver.AfterOrEqual(proc.GoVersion{1, 7, -1, 0, 0}) { t.Log("Test skipped") return } withTestClient2("issue528", t, func(c service.Client) { findLocationHelper(t, c, "State.Close", false, 1, 0) }) }
func TestNextGeneral(t *testing.T) { var testcases []nextTest ver, _ := proc.ParseVersionString(runtime.Version()) if ver.Major < 0 || ver.AfterOrEqual(proc.GoVersion{1, 7, 0, 0, 0}) { testcases = []nextTest{ {17, 19}, {19, 20}, {20, 23}, {23, 24}, {24, 26}, {26, 31}, {31, 23}, {23, 24}, {24, 26}, {26, 31}, {31, 23}, {23, 24}, {24, 26}, {26, 27}, {27, 28}, {28, 34}, } } else { testcases = []nextTest{ {17, 19}, {19, 20}, {20, 23}, {23, 24}, {24, 26}, {26, 31}, {31, 23}, {23, 24}, {24, 26}, {26, 31}, {31, 23}, {23, 24}, {24, 26}, {26, 27}, {27, 34}, } } testnext(testcases, "main.testnext", t) }