CatapultServer  v0.5.0.1 (Elephant)
validation.MultiConditionChecker Class Reference
Inheritance diagram for validation.MultiConditionChecker:
Collaboration diagram for validation.MultiConditionChecker:

Public Member Functions

def __init__ (self, errorReporter)
 
def reset (self, path)
 
def checkExplicitOperatorBool (self, line)
 
def checkTestLine (self, line)
 
def checkExplicitCtor (self, line)
 
def checkValidationResult (self, line)
 
def checkEnumClass (self, line)
 
def checkCoerce (self, line)
 
def checkDefineTests (self, line)
 
def checkFileSize (self, line)
 
def checkTestExpectedSize (self, line)
 
def checkTestAsserts (self, line)
 
def checkDeclareMacroNoParams (self, line)
 
def checkSingleLineFunction (self, line)
 
def checkTestNameIf (self, line)
 
def check (self, lineNumber, line)
 
- Public Member Functions inherited from SimpleValidator.SimpleValidator
def finalize (self)
 

Static Public Member Functions

def formatError (err)
 

Public Attributes

 patternOperatorBool
 
 patternOperatorBoolWithExplicit
 
 patternTest
 
 patternTestClass
 
 patternValidationResult
 
 isTestValidator
 
 patternMissingExplicitCtor
 
 patternEnum
 
 patternEnumClass
 
 patternCoerce
 
 patternDefineTests
 
 patternDefineTestTraits
 
 patternFileSize
 
 patternOperator
 
 patternTryParseValue
 
 patternFileSizeCast
 
 patternTestExpectedSize
 
 patternTestMemcmpAssert
 
 patternTestBoolAssert
 
 patternTestBoolAssertAllowed
 
 patternDeclareMacroNoParams
 
 patternSingleLineFunction
 
 patternTestSingleLineFunction
 
 patternTestNameIf
 
 patternTestNameIfExclusions
 
 errors
 
- Public Attributes inherited from SimpleValidator.SimpleValidator
 errorReporter
 
 path
 

Static Public Attributes

string SUITE_NAME = 'MultiConditionChecker'
 
string NAME = 'multiConditionChecker'
 

Detailed Description

Validator for more complicated cases, that require several conditions.

* tests use `TEST(TEST_CLASS` construction
* `operator bool` if overridden is always `explicit`
* in validator tests, if `ValidationResult` is last argument, argument name should be `value`
* single argument ctor is explicit
* enums are always scoped (enum class)

Constructor & Destructor Documentation

◆ __init__()

def validation.MultiConditionChecker.__init__ (   self,
  errorReporter 
)

Reimplemented from SimpleValidator.SimpleValidator.

Member Function Documentation

◆ check()

def validation.MultiConditionChecker.check (   self,
  lineNumber,
  line 
)
Here is the call graph for this function:

◆ checkCoerce()

def validation.MultiConditionChecker.checkCoerce (   self,
  line 
)

◆ checkDeclareMacroNoParams()

def validation.MultiConditionChecker.checkDeclareMacroNoParams (   self,
  line 
)

◆ checkDefineTests()

def validation.MultiConditionChecker.checkDefineTests (   self,
  line 
)

◆ checkEnumClass()

def validation.MultiConditionChecker.checkEnumClass (   self,
  line 
)

◆ checkExplicitCtor()

def validation.MultiConditionChecker.checkExplicitCtor (   self,
  line 
)

◆ checkExplicitOperatorBool()

def validation.MultiConditionChecker.checkExplicitOperatorBool (   self,
  line 
)

◆ checkFileSize()

def validation.MultiConditionChecker.checkFileSize (   self,
  line 
)

◆ checkSingleLineFunction()

def validation.MultiConditionChecker.checkSingleLineFunction (   self,
  line 
)

◆ checkTestAsserts()

def validation.MultiConditionChecker.checkTestAsserts (   self,
  line 
)

◆ checkTestExpectedSize()

def validation.MultiConditionChecker.checkTestExpectedSize (   self,
  line 
)

◆ checkTestLine()

def validation.MultiConditionChecker.checkTestLine (   self,
  line 
)

◆ checkTestNameIf()

def validation.MultiConditionChecker.checkTestNameIf (   self,
  line 
)

◆ checkValidationResult()

def validation.MultiConditionChecker.checkValidationResult (   self,
  line 
)

◆ formatError()

def validation.MultiConditionChecker.formatError (   err)
static

◆ reset()

def validation.MultiConditionChecker.reset (   self,
  path 
)

Reimplemented from SimpleValidator.SimpleValidator.

Member Data Documentation

◆ errors

validation.MultiConditionChecker.errors

◆ isTestValidator

validation.MultiConditionChecker.isTestValidator

◆ NAME

string validation.MultiConditionChecker.NAME = 'multiConditionChecker'
static

◆ patternCoerce

validation.MultiConditionChecker.patternCoerce

◆ patternDeclareMacroNoParams

validation.MultiConditionChecker.patternDeclareMacroNoParams

◆ patternDefineTests

validation.MultiConditionChecker.patternDefineTests

◆ patternDefineTestTraits

validation.MultiConditionChecker.patternDefineTestTraits

◆ patternEnum

validation.MultiConditionChecker.patternEnum

◆ patternEnumClass

validation.MultiConditionChecker.patternEnumClass

◆ patternFileSize

validation.MultiConditionChecker.patternFileSize

◆ patternFileSizeCast

validation.MultiConditionChecker.patternFileSizeCast

◆ patternMissingExplicitCtor

validation.MultiConditionChecker.patternMissingExplicitCtor

◆ patternOperator

validation.MultiConditionChecker.patternOperator

◆ patternOperatorBool

validation.MultiConditionChecker.patternOperatorBool

◆ patternOperatorBoolWithExplicit

validation.MultiConditionChecker.patternOperatorBoolWithExplicit

◆ patternSingleLineFunction

validation.MultiConditionChecker.patternSingleLineFunction

◆ patternTest

validation.MultiConditionChecker.patternTest

◆ patternTestBoolAssert

validation.MultiConditionChecker.patternTestBoolAssert

◆ patternTestBoolAssertAllowed

validation.MultiConditionChecker.patternTestBoolAssertAllowed

◆ patternTestClass

validation.MultiConditionChecker.patternTestClass

◆ patternTestExpectedSize

validation.MultiConditionChecker.patternTestExpectedSize

◆ patternTestMemcmpAssert

validation.MultiConditionChecker.patternTestMemcmpAssert

◆ patternTestNameIf

validation.MultiConditionChecker.patternTestNameIf

◆ patternTestNameIfExclusions

validation.MultiConditionChecker.patternTestNameIfExclusions

◆ patternTestSingleLineFunction

validation.MultiConditionChecker.patternTestSingleLineFunction

◆ patternTryParseValue

validation.MultiConditionChecker.patternTryParseValue

◆ patternValidationResult

validation.MultiConditionChecker.patternValidationResult

◆ SUITE_NAME

string validation.MultiConditionChecker.SUITE_NAME = 'MultiConditionChecker'
static

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