polyspace.project.Function Class
R2026bNamespace: polyspace.project
Description
This Python® class contains information about a function in your source code. A polyspace.project.Function object stores the function name, signature, and support information for stubbing, mocking, testing, and test generation.
You obtain polyspace.project.Function objects from the Functions property of a polyspace.project.CodeInfo object, or by using the getFunctionBySignature method.
Creation
Description
funcList = codeInfo.Functions returns a list of polyspace.project.Function objects for all the functions in the parsed source code. Here, codeInfo is a polyspace.project.CodeInfo object.
func = codeInfo.getFunctionBySignature( returns the signature)polyspace.project.Function object for the function with the specified signature. You can specify the signature either with or without the argument names. All names and types that you use in this signature must be qualified with namespaces.