decompiler  1.0.0
Public Member Functions | Private Attributes | List of all members
ghidra::FunctionTestProperty Class Reference

A single property to be searched for in the output of a function decompilation. More...

#include <testfunction.hh>

Public Member Functions

string getName (void) const
 Get the name of the property.
 
void startTest (void) const
 Reset "state", counting number of matching lines.
 
void processLine (const string &line) const
 Search thru line, update state if match found.
 
bool endTest (void) const
 Return results of property search.
 
void restoreXml (const Element *el)
 Reconstruct the property from an XML tag.
 

Private Attributes

int4 minimumMatch
 Minimum number of times property is expected to match.
 
int4 maximumMatch
 Maximum number of times property is expected to match.
 
string name
 Name of the test, to be printed in test summaries.
 
std::regex pattern
 Regular expression to match against a line of output.
 
uint4 count
 Number of times regular expression has been seen.
 

Detailed Description

A single property to be searched for in the output of a function decompilation.

This is generally a regular expression run over the characters in the decompiled "source" form of the function. The property may "match" more than once or not at all.


The documentation for this class was generated from the following files: