Source: The International Obfuscated C Code Contest (Hines)
[QUESTION]: What is White Box Testing?
[JOHN’S ANSWER]: First you ask me about black box testing, then you ask me about white box testing. Why don’t you just call it white trash testing? Why can’t this world just get along? Why do we need to judge boxes by the color of their cardboard? It’s all about character, not color, I say.
[CORRECT ANSWER]: It’s testing something that you expect to work in a certain way and have detailed knowledge of how it actually works inside. A good example would be gaining access to the programming source code of a product that you are testing. A tester may identify potential bugs and vulnerabilities in the product by reviewing the source code. Without such access, these problems would be harder to find.
[JOHN]: Oh, I see you what you mean. The code above is a great example of what you are talking about.