Public Member Functions | Private Member Functions | Private Attributes | List of all members
ISM::Tester Class Reference

#include <Tester.hpp>

Inheritance diagram for ISM::Tester:
Inheritance graph
[legend]

Public Member Functions

EvaluationResult evaluate (std::string patternName, const IsmPtr &ism)
 
std::string getDescription ()
 
 Tester (ObjectSetValidatorPtr objectSetValidator, PatternNameToObjectSet &validTestSetsPerPattern, PatternNameToObjectSet &invalidTestSetsPerPattern, bool testForFalseNegatives=false)
 

Private Member Functions

unsigned evaluateTestSets (const std::vector< ISM::ObjectSetPtr > &testSets, const std::string &patternName, bool expectedValue)
 

Private Attributes

double mEvaluationRuntime = 0
 
PatternNameToObjectSet mInvalidTestSetsPerPattern
 
unsigned int mNumTests
 
unsigned int mNumTestsDone
 
ISM::ObjectSetValidatorPtr mObjectSetValidator
 
bool mTestForFalseNegatives = false
 
PatternNameToObjectSet mValidTestSetsPerPattern
 

Additional Inherited Members

- Protected Attributes inherited from ISM::Evaluator
const char * LOG_COLOR_EVALUATOR = LogHelper::LOG_COLOR_BLUE
 

Detailed Description

Definition at line 33 of file Tester.hpp.

Constructor & Destructor Documentation

ISM::Tester::Tester ( ObjectSetValidatorPtr  objectSetValidator,
PatternNameToObjectSet validTestSetsPerPattern,
PatternNameToObjectSet invalidTestSetsPerPattern,
bool  testForFalseNegatives = false 
)
inline

Definition at line 36 of file Tester.hpp.

Member Function Documentation

EvaluationResult ISM::Tester::evaluate ( std::string  patternName,
const IsmPtr ism 
)
virtual

Implements ISM::Evaluator.

Definition at line 27 of file Tester.cpp.

unsigned ISM::Tester::evaluateTestSets ( const std::vector< ISM::ObjectSetPtr > &  testSets,
const std::string &  patternName,
bool  expectedValue 
)
private

Definition at line 68 of file Tester.cpp.

std::string ISM::Tester::getDescription ( )
virtual

Implements ISM::Evaluator.

Definition at line 91 of file Tester.cpp.

Member Data Documentation

double ISM::Tester::mEvaluationRuntime = 0
private

Definition at line 58 of file Tester.hpp.

PatternNameToObjectSet ISM::Tester::mInvalidTestSetsPerPattern
private

Definition at line 51 of file Tester.hpp.

unsigned int ISM::Tester::mNumTests
private

Definition at line 55 of file Tester.hpp.

unsigned int ISM::Tester::mNumTestsDone
private

Definition at line 56 of file Tester.hpp.

ISM::ObjectSetValidatorPtr ISM::Tester::mObjectSetValidator
private

Definition at line 49 of file Tester.hpp.

bool ISM::Tester::mTestForFalseNegatives = false
private

Definition at line 54 of file Tester.hpp.

PatternNameToObjectSet ISM::Tester::mValidTestSetsPerPattern
private

Definition at line 52 of file Tester.hpp.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41