equal
deleted
inserted
replaced
79 |
79 |
80 #################### |
80 #################### |
81 |
81 |
82 |
82 |
83 class embeddedmatcher(object): # pytype: disable=ignored-metaclass |
83 class embeddedmatcher(object): # pytype: disable=ignored-metaclass |
84 """Base class to detect embedded code fragments in *.t test script |
84 """Base class to detect embedded code fragments in *.t test script""" |
85 """ |
|
86 |
85 |
87 __metaclass__ = abc.ABCMeta |
86 __metaclass__ = abc.ABCMeta |
88 |
87 |
89 def __init__(self, desc): |
88 def __init__(self, desc): |
90 self.desc = desc |
89 self.desc = desc |
101 def endsat(self, ctx, line): |
100 def endsat(self, ctx, line): |
102 """Examine whether embedded code ends at line""" |
101 """Examine whether embedded code ends at line""" |
103 |
102 |
104 @abc.abstractmethod |
103 @abc.abstractmethod |
105 def isinside(self, ctx, line): |
104 def isinside(self, ctx, line): |
106 """Examine whether line is inside embedded code, if not yet endsat |
105 """Examine whether line is inside embedded code, if not yet endsat""" |
107 """ |
|
108 |
106 |
109 @abc.abstractmethod |
107 @abc.abstractmethod |
110 def ignores(self, ctx): |
108 def ignores(self, ctx): |
111 """Examine whether detected embedded code should be ignored""" |
109 """Examine whether detected embedded code should be ignored""" |
112 |
110 |