Multiple choice technology testing

To test a function, the programmer has to write a___, which calls the function and passes it test data

  1. Stub

  2. Driver

  3. Proxy

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A driver is a test harness or program that calls the function under test and passes it test data. Conversely, a stub is a dummy implementation called by the function under test to simulate missing dependencies.