polyspace.project.CodeInfo Class
Namespace: polyspace.project
(Python) Store information about types, functions, and globals in parsed source code
Since R2025a
Description
This Python® class contains information about data types, functions, and global variables in your source code. When authoring tests using the Polyspace® Test™ Python API, create an object of this class. Then use the information stored in this object to create test data, parameters, and steps.
Creation
Description
codeInfo = polyspace.project.parseCode( parses the source code in the project proj)proj and stores information about data types, functions, and global variables in the polyspace.project.CodeInfo object codeInfo. For extensions of this syntax, see polyspace.project.parseCode.
If an error occurs during code parsing, the function throws an exception of type polyspace.ErrorWithLog. (since R2026a)