Patent ID: 7496906
Filing Date: 2009-02-24
Classification: G06F

Abstract:
1. A method to test a code segment of a source file, comprising: selecting the code segment from the source file for testing based upon input from a user, the code segment being self-contained; machine-rendering a source code skeleton in response selecting the code segment, wherein machine-rendering comprises choosing additional code to include in the source code skeleton to supplement the code segment for compilation; verifying whether the code segment has an entry point to determine that the code segment does not have an entry point; inserting the entry point into the source code skeleton in response to determining that the code segment does not have the entry point; incorporating the code segment into the source code skeleton to generate a temporary source file; inserting a monitoring statement into the temporary source file, the monitoring statement to provide runtime data associated with the code segment; compiling the temporary source file into a compiled program; and executing the compiled program to output a result based upon the monitoring statement.