|
pFUnit
|
Public Member Functions | |
| def | __init__ (self, assertionName, expectedDescr, foundDescr, tolerance) |
| Dependency injection. More... | |
Public Member Functions inherited from CodeUtilities.routineUnit | |
| def | __init__ (self, name, implementSource) |
| def | setName (self, name) |
| def | getName (self) |
| def | setDeclaration (self, declaration) |
| def | addDeclaration (self, declaration) |
| def | setImplementation (self, implementationSource) |
| def | getDeclaration (self, expose=False) |
| def | getDeclarations (self, expose=False) |
| def | getImplementation (self) |
| def | clearDeclarations (self) |
Public Attributes | |
| expectedDescr | |
| foundDescr | |
| name | |
| name1 | |
| Add in the extra module procedures... More... | |
| tolerance | |
| If you need another kind of code generator, perhaps conditioned on eDesc., fDesc., or tol, then that logic would go here... More... | |
Public Attributes inherited from CodeUtilities.routineUnit | |
| name | |
| declaration | |
| declarations | |
| implementation | |
| def GenerateAssertsOnArrays.constraintASSERT.__init__ | ( | self, | |
| assertionName, | |||
| expectedDescr, | |||
| foundDescr, | |||
| tolerance | |||
| ) |
Dependency injection.
Will generate "assert"+assertionName assertionName="Equal" This next line actually generates the text of the code.
| GenerateAssertsOnArrays.constraintASSERT.name1 |
Add in the extra module procedures...
If needed... Kluge. Need to make makeSubroutineNames and load the extra interface entries there.
| GenerateAssertsOnArrays.constraintASSERT.tolerance |
If you need another kind of code generator, perhaps conditioned on eDesc., fDesc., or tol, then that logic would go here...
E.g. to implement assertEqual(Logical(...))
1.8.13