Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 70) sorted by relevance

123

/openthread-latest/tools/otci/otci/
Dutils.py36 match = expect_line.match(line) is not None
38 match = (line == expect_line)
40 match = any(match_line(line, x) for x in expect_line)
42 return match
Dcommand_handlers.py98 assert __PATTERN_LOG_LINE.match('[I] ChannelMonitor: debug log')
99 assert __PATTERN_LOG_LINE.match('[I] Mac-----------: info log')
100 assert __PATTERN_LOG_LINE.match('[N] MeshForwarder-: note log')
101 assert __PATTERN_LOG_LINE.match('[W] Notifier------: warn log')
102 assert __PATTERN_LOG_LINE.match('[C] Mle-----------: critical log')
103 assert __PATTERN_LOG_LINE.match('[-] Settings------: none log')
104 …assert not __PATTERN_LOG_LINE.match('[-] Settings-----: none log') # not enough `-` after module …
224 if not OtCliCommandRunner.__PATTERN_LOG_LINE.match(line):
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dcheck_names.py157 def __init__(self, pattern, match): argument
159 self.match = match
166 .format(self.match.filename, self.match.line_no, self.match.name)
173 self.match.filename,
174 self.match.line_no,
175 self.match.name,
178 ) + "\n" + str(self.match)
189 def __init__(self, match): argument
190 self.match = match
196 .format(self.match.filename, self.match.line_no, self.match.name)
[all …]
Dgenerate_test_code.py401 if not re.match(CONDITION_REGEX, dependency, re.I):
430 match = re.search(DEPENDENCY_REGEX, line.strip())
431 if match:
433 dependencies = parse_dependencies(match.group('dependencies'))
457 match = re.search(BEGIN_CASE_REGEX, line)
458 dep_str = match.group('depends_on')
460 match = re.search(DEPENDENCY_REGEX, dep_str)
461 if match:
462 dependencies += parse_dependencies(match.group('dependencies'))
635 match = re.match(TEST_FUNCTION_VALIDATION_REGEX,
[all …]
Daudit-validity-dates.py36 match = re.match(r'^[0-9]+', cryptography.__version__)
37 if match is None or int(match.group(0)) < 35:
328 match = re.search(r'\A\w+(.*:)?\"', line)
329 if match:
358 match = re.match(r'"(?P<data>[0-9a-fA-F]+)"', test_arg)
359 if not match:
361 if not X509Parser.check_hex_string(match.group('data')):
363 audit_data = self.parse_bytes(bytes.fromhex(match.group('data')))
Dtest_psa_compliance.py108 match = test_re.match(line)
109 if match is not None:
110 groupdict = match.groupdict()
Dlist_internal_identifiers.py40 identifiers = ["{}\n".format(match.name) for match in result]
Dcheck_files.py76 re.match(self.path_exemptions, self.normalize_path(filepath)):
179 m = re.match(self._shebang_re, first_line)
278 return not self.GOOD_CHARACTERS_RE.match(text)
424 m = self.COPYRIGHT_RE.match(line)
429 m = self.SPDX_RE.match(line)
441 m = self.LICENSE_MENTION_RE.match(line)
Ddepends.py333 if exclude and re.match(exclude, description):
355 if exclude and re.match(exclude, description):
374 m = re.match(r' *MBEDTLS_CIPHER_ID_(\w+),', line)
383 if re.match(regexp, symbol)]
/openthread-latest/src/core/thread/
Dlink_metrics_types.cpp132 bool match = false; in IsFrameTypeMatch() local
138 match = mSeriesFlags.IsLinkProbeFlagSet(); in IsFrameTypeMatch()
141 match = mSeriesFlags.IsMacDataFlagSet(); in IsFrameTypeMatch()
144 match = mSeriesFlags.IsMacDataRequestFlagSet(); in IsFrameTypeMatch()
147 match = mSeriesFlags.IsMacAckFlagSet(); in IsFrameTypeMatch()
154 return match; in IsFrameTypeMatch()
/openthread-latest/third_party/mbedtls/repo/scripts/
Dgenerate_ssl_debug_helpers.py29 def replacer(match): argument
30 if match.lastgroup == 'comment':
32 return match.group()
83 for match in pattern.finditer(source):
85 directive = match.groupdict()['directive'].strip()
86 param = match.groupdict()['param']
87 start, end = match.span()
150 for match in enum_pattern.finditer(source_code, start, end):
152 span=match.span(),
153 group=match.groupdict())
Dgenerate_errors.pl106 foreach my $match (@matches)
108 my ($error_name, $error_code, $description) = @$match;
/openthread-latest/tests/unit/
Dtest_array.cpp295 Entry *match; in TestArrayCopyAndFindMatching() local
299 match = array2.FindMatching(entry.mName); in TestArrayCopyAndFindMatching()
300 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching()
301 VerifyOrQuit(match == &entry); in TestArrayCopyAndFindMatching()
304 match = array2.FindMatching(entry.mYear); in TestArrayCopyAndFindMatching()
305 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching()
306 VerifyOrQuit(match == &entry); in TestArrayCopyAndFindMatching()
321 Entry *match; in TestArrayCopyAndFindMatching() local
326 match = array2.Find(entryToRemove); in TestArrayCopyAndFindMatching()
327 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching()
[all …]
/openthread-latest/tools/harness-automation/cases_R140/
Dleader_5_5_1.py45 match = re.search(r'(?<=Leader Timeout\[)\d+(?= Seconds\])', body)
46 if match:
47 timeout = int(match.group(0)) / 2
/openthread-latest/tools/harness-automation/cases/
Dleader_5_5_1.py45 match = re.search(r'(?<=Leader Timeout\[)\d+(?= Seconds\])', body)
46 if match:
47 timeout = int(match.group(0)) / 2
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dcrypto_knowledge.py90 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name)
100 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name)
107 m = re.match(r'PSA_KEY_TYPE_(\w+)', self.name)
308 m = re.match(r'PSA_ALG_(?:'
323 m = re.match(r'PSA_ALG_(?:DETERMINISTIC_)?(\w+)', expr)
328 m = re.match(r'PSA_ALG_KEY_AGREEMENT\s*\(\s*PSA_ALG_(\w+)', expr)
333 if re.match(r'ED[0-9]+PH\Z', head):
381 if re.match(r'.*[0-9]\Z', prefix):
421 m = re.match(r'PSA_ALG_KEY_AGREEMENT\(\w+,\s*(.*)\)\Z', self.expression)
426 if re.match(r'(?:0[Xx])?0+\s*\Z', kdf_alg):
[all …]
Dc_parsing_helper.py42 m = self._DECLARATION_RE.match(self.decl)
117 m = _C_FUNCTION_DECLARATION_RE.match(line)
124 if len(arguments) == 1 and re.match(FunctionInfo.VOID_RE, arguments[0]):
Dmacro_collector.py258 if re.match(r'MAC(?:_|\Z)', name):
260 elif re.match(r'KDF(?:_|\Z)', name):
288 m = re.match(self._define_directive_re, line)
295 if re.match(self._deprecated_definition_re, expansion):
467 m = re.match(self._header_line_re, line)
537 m = re.match(self._test_case_line_re, line)
/openthread-latest/tests/scripts/thread-cert/
Dtest_pbbr_aloc.py104 if not re.match(MESH_LOCAL_PREFIX_REGEX_PATTERN, ip):
110 self.assertIsNotNone(re.match(ROUTING_LOCATOR_REGEX_PATTERN, ip), ip)
Dnode.py853 return pattern.match(line)
892 log = self.pexpect.match.group(0)
948 line = self.pexpect.match.group(0).decode('utf8').strip()
1437 m = re.match(r'(\w+)\:[^\d]+(\d+)[^\d]+(\d+)(?:[^\d]+(\d+))?', line)
1471 m = re.match(r'(\w+)\: (\d+)', line)
1556 g = self.pexpect.match.groups()
1669 m = re.match(r'status (\d+), (\d+) failed', lines[0])
2138 if re.match(config.LINK_LOCAL_REGEX_PATTERN, ip6Addr, re.I):
2146 if ((not re.match(config.LINK_LOCAL_REGEX_PATTERN, ip6Addr, re.I)) and
2147 (not re.match(config.MESH_LOCAL_PREFIX_REGEX_PATTERN, ip6Addr, re.I)) and
[all …]
/openthread-latest/tools/harness-automation/
Dparse_topofile.py103 if re.match(r'\s*#.*', line):
106 matched_case = re.match(r'(.*)-(.*)', line, re.M | re.I)
/openthread-latest/tests/scripts/thread-cert/border_router/
Dtest_dnssd_instance_name_with_space.py183 def _match_record(self, record, match): argument
186 if record == match:
189 return all(a == b or (callable(b) and b(a)) for a, b in zip(record, match))
Dtest_dnssd_server.py311 def _match_record(self, record, match): argument
314 if record == match:
317 return all(a == b or (callable(b) and b(a)) for a, b in zip(record, match))
/openthread-latest/src/core/common/
Dstring.cpp63 MatchType match = kNoMatch; in Match() local
82 match = (*aString == kNullChar) ? kFullMatch : kPrefixMatch; in Match()
85 return match; in Match()
/openthread-latest/src/core/net/
Dsrp_advertising_proxy.cpp671 bool match = false; in EntriesMatch() local
677 match = true; in EntriesMatch()
688 match = true; in EntriesMatch()
691 return match; in EntriesMatch()
697 bool match = false; in EntriesMatch() local
703 match = true; in EntriesMatch()
722 match = true; in EntriesMatch()
725 return match; in EntriesMatch()

123