The Gaudi Framework  master (cc85194b)
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
list regexps = [re.compile(_search_pattern(r)) for r in regexps]

Detailed Description

Definition at line 66 of file preprocessors.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 67 of file preprocessors.py.

67 def __init__(self, strings=[], regexps=[]):
68 import re
69
70 self.strings = strings
71 self.regexps = [re.compile(_search_pattern(r)) for r in regexps]
72

Member Function Documentation

◆ __processLine__()

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

Definition at line 73 of file preprocessors.py.

73 def __processLine__(self, line):
74 for s in self.strings:
75 if line.find(s) >= 0:
76 return None
77 for r in self.regexps:
78 if r.search(line):
79 return None
80 return line
81
82

Member Data Documentation

◆ regexps

list GaudiTesting.preprocessors.LineSkipper.regexps = [re.compile(_search_pattern(r)) for r in regexps]

Definition at line 71 of file preprocessors.py.

◆ strings

GaudiTesting.preprocessors.LineSkipper.strings = strings

Definition at line 70 of file preprocessors.py.


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