func (f *Function) IsTestFunc() bool {
	return strings.HasPrefix(f.name, "Test") &&
		len(f.results) == 0 &&
		len(f.params) == 1 &&
		f.params[0].typ.name == "*testing.T"
}
// IsTestFunc returns true if it's a testing function.
IsTestFunc returns true if it's a testing function.
// IsTestFunc returns true if it ' s a testing function .
func (f *Function) IsTestFunc() bool {
	return strings.HasPrefix(f.name, "Test") &&
		len(f.results) == 0 &&
		len(f.params) == 1 &&
		f.params[0].typ.name == "*testing.T"
}
func ( f * Function ) IsTestFunc ( ) bool { return strings . HasPrefix ( f . name , " " ) && len ( f . results ) == 0 && len ( f . params ) == 1 && f . params [ 0 ] . typ . name == " " }
IsTestFunc returns true if it's a testing function.
IsTestFunc returns true if it ' s a testing function .