Handling mock objects that are written in the form of multiple assignment instructions
AssigneeInternational Business Machines Corporation
InventorTakaaki Tateishi
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorTakaaki Tateishi
Estimating the term…
A computer-implemented method, system and computer program product for effectively handling mock objects written in the form of multiple assignment instructions. A program to test software is instrumented so as to obtain an instrumented program having one or more mock objects. The instrumented program is parsed to identify one or more multiple assignment instructions each corresponding to a mock object. A function is then inserted in the instrumented program for each of the identified multiple assignment instructions corresponding to a mock object, where the function returns a tuple of the first “n” elements of the mock object. The instrumented program (after inserting the function(s) discussed above) is outputted to perform software testing, such as dynamic program analysis. In this manner, by inserting such function(s) in the instrumented program, the mock objects will be able to be executed without causing a failure.
A computer-implemented method for handling mock objects written in a form of multiple assignment instructions, the method comprising:
A computer program product for handling mock objects written in a form of multiple assignment instructions, the computer program product comprising one or more computer readable storage mediums having program code embodied therewith, the program code comprising programming instructions for:
A system, comprising:
Dependencies are inferred from the claim text.