CTestDoubleVariant

Test double generation of C code.

TODO Describe the options.

Constructors

this
this(MainFileName main_fname, DirName output_dir, Regex!char strip_incl)

Design of c'tor.

Members

Functions

argForceTestDoubleIncludes
auto argForceTestDoubleIncludes(string[] a)

Force the includes to be those supplied by the user.

argXmlConfig
auto argXmlConfig(Nullable!XmlConfig conf)

Ensure that the relevant information from the xml file is extracted.

getProducedFiles
FileData[] getProducedFiles()

Data produced by the generatore intented to be written to specified file.

getXmlConfigFile
FileName getXmlConfigFile()

Destination of the configuration file containing how the test double was generated.

getXmlLog
FileName getXmlLog()

Destination of the xml log for how dextool was ran when generatinng the test double.

Inherited Members

From Controller

doFile
bool doFile(in string filename, in string info)

Query the controller with the filename of the AST node for a decision if it shall be processed.

doSymbol
bool doSymbol(string symbol)

Query the controller for a decision if it shall be processed.

getIncludes
FileName[] getIncludes()

A list of includes for the test double header.

doGoogleMock
bool doGoogleMock()

Controls generation of google mock.

doPreIncludes
bool doPreIncludes()

Generate a pre_include header file from internal template?

doIncludeOfPreIncludes
bool doIncludeOfPreIncludes()

Generate a #include of the pre include header

doPostIncludes
bool doPostIncludes()

Generate a post_include header file from internal template?

doIncludeOfPostIncludes
bool doIncludeOfPostIncludes()

Generate a #include of the post include header

doLocationAsComment
bool doLocationAsComment()

Generate location of symbols as comments

From Parameters

getIncludes
FileName[] getIncludes()

Source files used to generate the test double.

getOutputDirectory
DirName getOutputDirectory()

Output directory to store files in.

getFiles
Files getFiles()

Files to write generated test double data to.

getMainName
MainName getMainName()

Name affecting interface, namespace and output file.

getMainNs
MainNs getMainNs()

Namespace for the generated test double.

getMainInterface
MainInterface getMainInterface()

Name of the interface of the test double.

getFilePrefix
StubPrefix getFilePrefix()

Prefix to use for the generated files.

getArtifactPrefix
StubPrefix getArtifactPrefix()

Prefix used for test artifacts.

getToolVersion
DextoolVersion getToolVersion()

Dextool Tool version.

getCustomHeader
CustomHeader getCustomHeader()

Custom header to prepend generated files with.

generateZeroGlobals
Flag!"generateZeroGlobals" generateZeroGlobals()

If an implementation of the interface for globals that zeroes them shall be generated.

From Products

putFile
void putFile(FileName fname, CppHModule hdr_data)
void putFile(FileName fname, CppModule impl_data)

Data pushed from the test double generator to be written to files.

putLocation
void putLocation(FileName loc, LocationType type)

During the translation phase the location of symbols that aren't filtered out are pushed to the variant.

Meta