const errorfMinArgCount … const errorfFormatIndex … // TestErrorCalls makes sure that check.errorf calls have at least // errorfMinArgCount arguments (otherwise we should use check.error) // and use balanced parentheses/brackets. func TestErrorCalls(t *testing.T) { … } func isName(n syntax.Node, name string) bool { … } func balancedParentheses(s string) bool { … }