In Go unit testing, the _______ function is used to indicate a failed test and continue executing subsequent tests.

  • Error
  • Fail
  • FailNow
  • Fatal
In Go unit testing, the FailNow function is used to indicate a failed test and stop execution immediately. It marks the test as failed and terminates the test execution, preventing further test cases from running.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *