const filename … type testEntry … // dup returns a testEntry where both src and str are the same. func dup(s string) testEntry { … } var independentTestTypes … var dependentTestTypes … func TestTypeString(t *testing.T) { … } func TestQualifiedTypeString(t *testing.T) { … }