static shouldBeUnreachable(message)

Function will always fail with a message stating that this line of code should not be executed. A common use case for this would be in the catch block of a test to ensure that you are actually verifying the did not throw. If you do not add some test in a catch block, you are test could be throwing but since you aren't catching it, it could give you a false positive.

  • [message] {String} - Define the message to fail with. The default message is: 'It should be impossible to reach this code.'.
  • returns nothing