Lines Matching defs:matched
206 """Helper function to return the line number of the first matched string."""
2061 matched = thread_line_pattern.match(line)
2062 if matched:
2063 self.runCmd("thread select %s" % matched.group(1))
2101 matched = bool(match_object)
2104 print("Matched" if matched else "Not matched", file=sbuf)
2105 if matched:
2109 matched if matching else not matched,
2136 # The index of the last matched description in description_strings or
2137 # -1 if no description has been matched yet.
2362 set to False, the 'string' is treated as a string to be matched/not-matched
2413 def found_str(matched):
2414 return "was found" if matched else "was not found"
2427 # Assume that we start matched if we want a match
2430 matched = matching
2434 matched = output.startswith(startstr)
2437 expecting_str, startstr, found_str(matched)
2441 if endstr and matched == matching:
2442 matched = output.endswith(endstr)
2445 expecting_str, endstr, found_str(matched)
2449 if substrs and matched == matching:
2454 matched = index != -1
2457 expecting_str, substr, found_str(matched)
2461 if matched != matching:
2464 if patterns and matched == matching:
2466 matched = re.search(pattern, output)
2469 expecting_str, pattern, found_str(matched)
2471 if matched:
2472 pattern_line += ', matched "{}"'.format(matched.group(0))
2478 matched = bool(matched)
2479 if matched != matching:
2483 if msg is not None and matched != matching:
2489 if matched != matching: