Definition at line 650 of file GaudiTest.py.
def GaudiTest.ReferenceFileValidator.__init__ |
( |
|
self, |
|
|
|
reffile, |
|
|
|
cause, |
|
|
|
result_key, |
|
|
|
preproc = normalizeExamples |
|
) |
| |
Definition at line 651 of file GaudiTest.py.
651 def __init__(self, reffile, cause, result_key, preproc=normalizeExamples):
def __init__(self, reffile, cause, result_key, preproc=normalizeExamples)
def GaudiTest.ReferenceFileValidator.__call__ |
( |
|
self, |
|
|
|
stdout, |
|
|
|
result |
|
) |
| |
Definition at line 657 of file GaudiTest.py.
659 if os.path.isfile(self.
reffile):
660 orig = open(self.
reffile).xreadlines()
666 new = stdout.splitlines()
670 diffs = difflib.ndiff(orig, new, charjunk=difflib.IS_CHARACTER_JUNK)
671 filterdiffs =
map(
lambda x: x.strip(), filter(
672 lambda x: x[0] !=
" ", diffs))
675 result[self.
result_key] = result.Quote(
"\n".join(filterdiffs))
679 +) standard output of the test""")
680 causes.append(self.
cause)
struct GAUDI_API map
Parametrisation class for map-like implementation.
def __call__(self, stdout, result)
GaudiTest.ReferenceFileValidator.cause |
GaudiTest.ReferenceFileValidator.preproc |
GaudiTest.ReferenceFileValidator.reffile |
GaudiTest.ReferenceFileValidator.result_key |
The documentation for this class was generated from the following file: