package main

import "testing"

func TestTree(*testing.T) {
	nodes := []treeNode{
		{"F", "H", []string{}},
		{"F", "I", []string{}},
		{"F", "J", []string{}},
		{"A", "B", []string{}},
		{"A", "C", []string{}},
		{"A", "K", []string{}},
		{"C", "F", []string{}},
		{"C", "G", []string{"beware", "the", "scary", "thing"}},
		{"C", "L", []string{}},
		{"B", "D", []string{}},
		{"B", "E", []string{}},
		{"B", "M", []string{}},
		{"K", "N", []string{}},
		{"W", "X", []string{}},
		{"Y", "Z", []string{}},
		{"X", "Y", []string{}},
	}
	printTree(nodes)
}

package main

import "testing"

func TestTree(_ *testing.T) {
	nodes := []treeNode{
		{"F", "H", []string{}},
		{"F", "I", []string{}},
		{"F", "J", []string{}},
		{"A", "B", []string{}},
		{"A", "C", []string{}},
		{"A", "K", []string{}},
		{"C", "F", []string{}},
		{"C", "G", []string{"beware", "the", "scary", "thing"}},
		{"C", "L", []string{}},
		{"B", "D", []string{}},
		{"B", "E", []string{}},
		{"B", "M", []string{}},
		{"K", "N", []string{}},
		{"W", "X", []string{}},
		{"Y", "Z", []string{}},
		{"X", "Y", []string{}},
	}
	printTree(nodes)
}

Work around a paralleltest crash
Work around a paralleltest crash

> ERRO [runner] Panic: paralleltest: package "main" (isInitialPkg: true, needAnalyzeSource: true): runtime error: index out of range [0] with length 0: goroutine 5859 [running]:
> ...
> github.com/kunwardeep/paralleltest/pkg/paralleltest.isTestFunction(0x1b7d8c0?)
> 	github.com/kunwardeep/paralleltest@v1.0.6/pkg/paralleltest/paralleltest.go:252 +0x165

Should not change behavior.

Signed-off-by: Miloslav Trmač <9c008e38982a5397deb855345fb164f0558459ae@redhat.com>
