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 component that calls the function being tested with test data and verifies the results. Unlike stubs (which simulate dependencies) or proxies, drivers actively invoke the function under test.