The Gaudi Framework  v39r3 (979e3109)
GaudiTesting.preprocessors.LineSkipper Class Reference
Inheritance diagram for GaudiTesting.preprocessors.LineSkipper:
Collaboration diagram for GaudiTesting.preprocessors.LineSkipper:

Public Member Functions

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

Public Attributes

 strings
 
 regexps
 

Detailed Description

Definition at line 59 of file preprocessors.py.

Constructor & Destructor Documentation

◆ __init__()

def 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__()

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

Reimplemented from GaudiTesting.preprocessors.FilePreprocessor.

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

Definition at line 64 of file preprocessors.py.

◆ strings

GaudiTesting.preprocessors.LineSkipper.strings

Definition at line 63 of file preprocessors.py.


The documentation for this class was generated from the following file:
GaudiTesting.preprocessors.__processLine__
__processLine__
Definition: preprocessors.py:121
Containers::map
struct GAUDI_API map
Parametrisation class for map-like implementation.
Definition: KeyedObjectManager.h:35