func ptrint(i int) *int { … } func ptrstr(s string) *string { … } type customString … // String implements the Stringer interface for testing invocation func (s customString) String() string { … } type customError … // Error implements the error interface for testing invocation func (e customError) Error() string { … } type pCustomString … // String implements the Stringer interface for testing invocation func (s *pCustomString) String() string { … } type pCustomError … // Error implements the error interface for testing invocation func (e *pCustomError) Error() string { … } type embed … type embedwrap … func TestPretty(t *testing.T) { … } func TestForHash(t *testing.T) { … } func TestOneLine(t *testing.T) { … }