func TestRoutingFirstSegment(t *testing.T) { … } var testTree … func getTestTree() *routingNode { … } func buildTree(pats ...string) *routingNode { … } func TestRoutingAddPattern(t *testing.T) { … } type testCase … func TestRoutingNodeMatch(t *testing.T) { … } func TestMatchingMethods(t *testing.T) { … } func (n *routingNode) print(w io.Writer, level int) { … }