The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
GaudiTesting.preprocessors.LineSkipper Class Reference
Inheritance diagram for GaudiTesting.preprocessors.LineSkipper:
Collaboration diagram for GaudiTesting.preprocessors.LineSkipper:

Public Member Functions

 __init__ (self, strings=[], regexps=[])
 
 __processLine__ (self, line)
 
- Public Member Functions inherited from GaudiTesting.preprocessors.FilePreprocessor
 __processLine__ (self, line)
 
 __processFile__ (self, lines)
 
 __call__ (self, input)
 
 __add__ (self, rhs)
 

Public Attributes

 strings = strings
 
 regexps = list(map(re.compile, regexps))
 

Detailed Description

Definition at line 59 of file preprocessors.py.

Constructor & Destructor Documentation

◆ __init__()

GaudiTesting.preprocessors.LineSkipper.__init__ ( self,
strings = [],
regexps = [] )

Definition at line 60 of file preprocessors.py.

60 def __init__(self, strings=[], regexps=[]):
61 import re
62
63 self.strings = strings
64 self.regexps = list(map(re.compile, regexps))
65

Member Function Documentation

◆ __processLine__()

GaudiTesting.preprocessors.LineSkipper.__processLine__ ( self,
line )

Definition at line 66 of file preprocessors.py.

66 def __processLine__(self, line):
67 for s in self.strings:
68 if line.find(s) >= 0:
69 return None
70 for r in self.regexps:
71 if r.search(line):
72 return None
73 return line
74
75

Member Data Documentation

◆ regexps

GaudiTesting.preprocessors.LineSkipper.regexps = list(map(re.compile, regexps))

Definition at line 64 of file preprocessors.py.

◆ strings

GaudiTesting.preprocessors.LineSkipper.strings = strings

Definition at line 63 of file preprocessors.py.


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