Spy (in testing)

  • Method that is spying on some function (that you need)
    • It is tracking information about:
      • how many times was the function called
      • with what parameters was the function called
      • what was the result of function call
      • etc