3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
filtertesting.cpp File Reference
#include <string>
#include <list>
#include <set>
#include <fstream>
#include <iostream>
Include dependency graph for filtertesting.cpp:

Functions

bool filterTests ()
 Run each filter through its own unit test function. More...
 
bool filterCloneTests ()
 Try cloning the filter from itself, and checking the filter. More...
 
bool filterTreeTests ()
 basic filter tree topology tests More...
 
bool filterRefreshNoOut ()
 
bool testFilterTree (const FilterTree &f)
 Test a given filter tree that the refresh works. More...
 
bool testFilterTree (const FilterTree &f, std::list< std::pair< Filter *, std::vector< const FilterStreamData * > > > &outData)
 Test a given filter tree that the refresh is successful,. More...
 

Function Documentation

◆ filterCloneTests()

bool filterCloneTests ( )

Try cloning the filter from itself, and checking the filter.

References Filter::cloneUncached(), FILTER_TYPE_ENUM_END, ConfigFile::getDefaultFilter(), Filter::getUserString(), ConfigFile::read(), Filter::readState(), STATE_FORMAT_XML, stlStr(), TEST, WARN, and Filter::writeState().

Referenced by filterTests().

Here is the caller graph for this function:

◆ filterRefreshNoOut()

bool filterRefreshNoOut ( )

◆ filterTests()

bool filterTests ( )

Run each filter through its own unit test function.

References FILTER_TYPE_ENUM_END, filterCloneTests(), filterRefreshNoOut(), filterTreeTests(), and makeFilter().

◆ filterTreeTests()

bool filterTreeTests ( )

◆ testFilterTree() [1/2]

bool testFilterTree ( const FilterTree f)

Test a given filter tree that the refresh works.

References FilterTree::safeDeleteFilterList().

Referenced by filterRefreshNoOut(), and threeDepictApp::OnCmdLineParsed().

Here is the caller graph for this function:

◆ testFilterTree() [2/2]

bool testFilterTree ( const FilterTree f,
std::list< std::pair< Filter *, std::vector< const FilterStreamData * > > > &  outData 
)

Test a given filter tree that the refresh is successful,.

References ASSERT, ATOMIC_BOOL, ilog2(), NUM_STREAM_TYPES, FilterTree::refreshFilterTree(), FilterTree::safeDeleteFilterList(), and STREAM_NAMES.