发明申请
- 专利标题: Mock object generation by symbolic execution
- 专利标题(中): 通过符号执行模拟对象生成
-
申请号: US11322967申请日: 2005-12-30
-
公开(公告)号: US20070033442A1公开(公告)日: 2007-02-08
- 发明人: Nikolai Tillmann , Wolfgang Grieskamp , Wolfram Schulte
- 申请人: Nikolai Tillmann , Wolfgang Grieskamp , Wolfram Schulte
- 申请人地址: US WA Redmond
- 专利权人: Microsoft Corporation
- 当前专利权人: Microsoft Corporation
- 当前专利权人地址: US WA Redmond
- 主分类号: G06F11/00
- IPC分类号: G06F11/00
摘要:
A system for testing programs using a digital processor and programs in computer memory. A mock behavior generator identifies an interface indicated for mock behavior. The interface is identified as an input parameter of a parameterized unit test. The mock behavior generator creates a symbolic object with stubs to receive calls and mock behavior that returns symbolic values upon receiving a call to the stub. A symbolic executor, symbolically executes the parameterized unit test to obtain path constraints for an implementation under test, and at least one path constraint includes the symbol returned in response to the call to the stub. A constraint solver provides solutions for the paths including concrete values assigned to returned symbols. The mock behavior generator creates mock objects that return the concrete values when the implementation under test is executed.
公开/授权文献
- US07496791B2 Mock object generation by symbolic execution 公开/授权日:2009-02-24