Test cases are derived solely based on the source code of a system . This is called white - box testing . Here , a test method has complete knowledge of the internal details of a program . However , from the viewpoint of practical testing , a white - box method is not generally applied to an entire program . One applies such a method to small units of a given large system . A unit refers to a function , procedure , method , and so on
-