Controlled testing using code error injection
OwnerAnton Kucherov, Gilad Braunschvig +1inventors
InventorsAnton Kucherov, Gilad Braunschvig, Leron Fliess
Life of this patent
Estimating the term…
Abstract
A computer program product, system, and method for: registering one or more agents within a program, wherein each agent is located along an execution path of the program and is configured to change the program's internal state; and executing at least one of the agents located along a first path in response to the program executing the first path. In some embodiments, executing the at least one of the agents includes changing internal data of the program and/or causing the program to execute varying amounts of data on the first path.
Claims13
A method comprising:
- registering one or more agents within a program, wherein each agent is located along an execution path of the program and is configured to change the program's internal state;
- and
- executing at least one of the agents in response to an execution of the program reaching a conditional expression that is wrapped in a wrapper,
- wherein executing the agent includes providing the wrapper with an identifier corresponding to the agent, and
- wherein the wrapper is configured to identify a callback function corresponding to the agent based on the identifier, execute the callback function, and change a flow of the program based on a value that is returned by the callback function.
A system comprising:
- a processor;
- a volatile memory;
- and
- a non-volatile memory storing computer program code that when executed on the processor causes the processor to execute a process operable to perform the operations of:
- registering one or more agents within a program, wherein each agent is located along an execution path of the program and is configured to change the program's internal state;
- and
- executing at least one of the agents in response to an execution of the program reaching a conditional expression that is wrapped in a wrapper,
- wherein executing the agent includes providing the wrapper with an identifier corresponding to the agent, and
- wherein the wrapper is configured to identify a callback function corresponding to the agent based on the identifier, execute the callback function, and change a flow of the program based on a value that is returned by the callback function.
A computer program product tangibly embodied in a non-transitory computer-readable medium, the computer-readable medium storing program instructions that are executable to:
- register one or more agents within a program, wherein each agent is located along an execution path of the program and is configured to change the program's internal state;
- and
- execute at least one of the agents in response to an execution of the program reaching a conditional expression that is wrapped in a wrapper,
- wherein executing the agent includes providing the wrapper with an identifier corresponding to the agent, and
- wherein the wrapper is configured to identify a callback function corresponding to the agent based on the identifier, execute the callback function, and change a flow of the program based on a value that is returned by the callback function.
Dependencies are inferred from the claim text.