1.

How is testing performed in GO?

Answer»

To test on Golang, follow these steps:

  • Create a file and end it with _test.go.
  • This file should CONTAIN the TestXxx FUNCTIONS as described.
  • Now, put this file in the same package as the ONE which is being tested.
  • This file will now be INCLUDED in the “go test” command.


Discussion

No Comment Found