mercredi 28 octobre 2015

Testing Internals In Go

The recommended golang test method signature format is:

func TestMxxxx(t *testing.T) {

}

I have noticed if I use 'Testmxxxx', it simply skips the tests. Now, if I have two function in a package, one name myFunc (as private, not exported), and another Myfunc(exported). What will be the approach to write separate test method for each of them?

Aucun commentaire:

Enregistrer un commentaire