Lines Matching +refs:match +refs:record +refs:refs

494     self.refs       = {}
551 if (self.refs):
556 for refName in source.refs:
557 refType, refPath, refNode, refSource = source.refs[refName]
568 source.refs = newRefs
601 for refName in source.refs:
602 refSource = source.refs[refName][3]
649 for refType, refRelPath, refNode, refSource in source.refs.values():
661 if (refSource.refs):
676 for refType, refRelPath, refNode, refSource in source.refs.values():
689 if (refSource.refs):
713 references = listReferences(self, set([self.sourcepath])) if (self.refs) else None
732 def addReference(self, referenceSource, match = None): argument
737 if refName not in self.refs:
739 if match == '==':
741 elif match == '!=':
743 self.refs[refName] = (match, refPath, node, referenceSource)
745 node = self.refs[refName][2]
747 if (match):
748 node.set('rel', 'mismatch' if ('!=' == match) else 'match')
750 match = self.refs[refName][0]
751 self.refs[refName] = (match, refPath, node, referenceSource)
759 for ref in self.refs.values()]
766 return self.isTest() and bool(self.refs)
769 return self.isTest() and (not bool(self.refs))
881 record = ((join(srcbase, m.group(2)), join(srcbase, m.group(3))), \
886 if not exists(record[0][0]):
889 % (src, record[0][0]))
890 elif not exists(record[0][1]):
893 % (src, record[0][1]))
894 elif not isPathInsideBase(record[1][0]):
897 % (src, record[1][0]))
898 elif not isPathInsideBase(record[1][1]):
901 % (src, record[1][1]))
902 yield record
1078 if (refName in self.refs):
1081 self.refs[refName] = ('==', refPath, node, None)
1089 if (refName in self.refs):
1092 self.refs[refName] = ('!=', refPath, node, None)
1141 match = re.match('(?:[^:]*)[tT]est(?:[^:]*):(.*)', title, re.DOTALL)
1142 if (match):
1143 title = match.group(1)
1259 if (refName in self.refs):
1262 self.refs[refName] = ('==', refPath, node, None)
1270 if (refName in self.refs):
1273 self.refs[refName] = ('!=', refPath, node, None)
1322 match = re.match('(?:[^:]*)[tT]est(?:[^:]*):(.*)', title, re.DOTALL)
1323 if (match):
1324 title = match.group(1)