首页>
外国专利>
Detecting Errors for Function Calls with an Implicit Receiver Object
Detecting Errors for Function Calls with an Implicit Receiver Object
展开▼
机译:使用隐式接收器对象检测函数调用的错误
展开▼
页面导航
摘要
著录项
相似文献
摘要
A code testing system identifies possible code errors that may generate unexpected application behaviors. The code testing system identifies function calls in the system by identifying function call sites that do not specify a receiver object but may invoke a function that uses a receiver object. To identify these call sites, the code testing system analyzes function operation to determine receiver functions that use a receiver object, and may exclude functions that use the receiver object in a pro forma way or that does not rely on or affect properties of the object. A callgraph is generated for the functions in the code to identify possible functions called from a call site. When a call site, based on the callgraph, may invoke a receiver function, the call site is analyzed to determine whether it specifies a receiver object for the called function and identifies an error when the call site does not specify a receiver object.
展开▼