Question:

Explain how you can do testing in GO?

Answer:

It has a lightweight testing framework consists of the go test command and the testing package.

To write a test you have to create a file with a name ending in _testing. Go which contains functions named TestXXX with signature func (t *testing.T).  The test framework runs each such function.


Keywords:

© 2017 QuizBucket.org