'What is "bench-testing code"?

In reference to this answer to a Stack Overflow question: what is "bench-testing code"? (Not to be confused with benchmark.)

Presumably it is some kind of code that embedded inside comments and used in the context of QA/testing. But what is it exactly?



Solution 1:[1]

"bench testing" was used a lot in the electronics industry. It refers to testing a circuit on the work bench.

Solution 2:[2]

"Bench testing code" simply tests the functionality of a section of code.

Placing the actual "bench testing code" in comments provides a much more detailed description of what testing was actually performed.

In my opinion, code should only have a reference (filename) of the "bench testing code" which is maintained elsewhere.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jay
Solution 2 Steven