-
公开(公告)号:US09058424B1
公开(公告)日:2015-06-16
申请号:US13662713
申请日:2012-10-29
Applicant: The MathWorks, Inc.
Inventor: Joseph R Bienkowski , David M. Saxe , Richard M. McKeever , John E. Booker , Andrew T. Campbell
CPC classification number: G06F11/3668 , G06F11/3684
Abstract: A computing device may obtain usage information relating to an execution of a function within code. The usage information may include a set of input values and an output value obtained based on executing the function using the set of input values. The computing device may further determine that the function has been executed a particular quantity of times using the set of input values and obtaining the output value, and may generate a unit test, for the function, based on determining that the function has been executed the particular quantity of times using the set of input values and obtaining the output value.
Abstract translation: 计算装置可以获得与代码内的功能的执行有关的使用信息。 使用信息可以包括一组输入值和基于使用该组输入值执行功能而获得的输出值。 计算设备还可以使用该组输入值进一步确定功能已经被执行了特定次数并且获得输出值,并且可以基于确定该功能已被执行而为该功能生成单元测试 使用该组输入值的特定次数并获得输出值。