func TestStaticCallee(t *testing.T) { … } func TestTypeParamStaticCallee(t *testing.T) { … } // testStaticCallee parses and type checks each file content in contents // as a single file package in order. Within functions that have the suffix // "calls" it checks that the CallExprs within have a static callee. // If the function's name == "calls" all calls must have static callees, // and if the name != "calls", the calls must not have static callees. // Failures are reported on t. func testStaticCallee(t *testing.T, contents []string) { … }