Home
last modified time | relevance | path

Searched refs:func (Results 1 – 15 of 15) sorted by relevance

/openthread-3.4.0/tests/scripts/thread-cert/pktverify/
Dutils.py39 def make_filter_func(func: Union[str, Callable], **vars) -> Callable:
47 if isinstance(func, str):
49 func = func.format_map({k: repr(v) for k, v in vars.items()}).strip()
50 print("\t%s" % func, file=sys.stderr)
51 code = compile('(\n' + func + '\n)', func, "eval")
53 def func(p): function
79 assert not vars, 'can not provide vars for non-str filter: %r %r' % (func, vars)
81 assert callable(func)
82 return func
Dpacket.py126 def verify(self, func: Union[str, Callable], **vars) -> bool:
128 func = make_filter_func(func, **vars)
129 ok = func(self)
133 def must_verify(self, func: Union[str, Callable], **vars):
134 if not self.verify(func, **vars):
140 def must_not_verify(self, func: Union[str, Callable], **vars):
141 if self.verify(func, **vars):
Dpacket_filter.py148 def filter(self, func, cascade=True, **vars) -> 'PacketFilter': argument
161 func = make_filter_func(func, **vars)
166 filter_func=lambda p: self._filter_func(p) and func(p),
/openthread-3.4.0/tools/otci/otci/
Dutils.py45 def cached(func): argument
47 prop_name = '__cached_' + func.__name__
49 @functools.wraps(func)
54 val = func(self)
61 def constant_property(func): argument
63 return property(cached(func))
/openthread-3.4.0/third_party/mbedtls/repo/tests/src/
Dpsa_crypto_helpers.c102 const char *func, in mbedtls_test_record_status() argument
113 fprintf( log, "%d:%s:%s:%d:%s\n", (int) status, func, file, line, expr ); in mbedtls_test_record_status()
/openthread-3.4.0/third_party/mbedtls/repo/tests/include/test/
Dpsa_crypto_helpers.h153 const char *func,
/openthread-3.4.0/tools/harness-simulation/harness/Thread_Harness/Sniffer/
DSimSniffer.py76 func = replaceFuncs.get((msg, title))
77 if func is None:
80 return func()
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ctr_drbg.function147 goto exit; // goto is needed to avoid warning ( no test assertions in func)
161 goto exit; // goto is needed to avoid warning ( no test assertions in func)
174 goto exit; // goto is needed to avoid warning ( no test assertions in func)
187 goto exit; // goto is needed to avoid warning ( no test assertions in func)
Dtest_suite_asn1write.function307 int ( *func )( unsigned char **p, unsigned char *start,
316 ret = ( *func )( &data.p, data.start, bitstring->x, bits );
Dtest_suite_psa_crypto.function822 psa_key_attributes_t func = psa_key_attributes_init( );
828 TEST_EQUAL( psa_get_key_lifetime( &func ), PSA_KEY_LIFETIME_VOLATILE );
832 TEST_EQUAL( psa_get_key_type( &func ), 0 );
836 TEST_EQUAL( psa_get_key_bits( &func ), 0 );
840 TEST_EQUAL( psa_get_key_usage_flags( &func ), 0 );
844 TEST_EQUAL( psa_get_key_algorithm( &func ), 0 );
1506 psa_hash_operation_t func = psa_hash_operation_init( );
1513 TEST_EQUAL( psa_hash_update( &func, input, sizeof( input ) ),
1521 PSA_ASSERT( psa_hash_abort( &func ) );
1923 psa_mac_operation_t func = psa_mac_operation_init( );
[all …]
/openthread-3.4.0/tools/harness-thci/
DOpenThread.py113 def watched(func): argument
114 func_name = func.func_name
116 @functools.wraps(func)
124 ret = func(self, *args, **kwargs)
141 def deco(func): argument
143 @functools.wraps(func)
147 return func(*args, **kwargs)
168 def commissioning(func): argument
170 @functools.wraps(func)
174 return func(self, *args, **kwargs)
/openthread-3.4.0/third_party/nlbuild-autotools/repo/third_party/autoconf/m4/
Dax_cxx_compile_stdcxx.m4423 void func(...) {}
426 void func(member<T>*) {}
430 void test() { func<foo>(0); }
/openthread-3.4.0/third_party/mbedtls/repo/doxygen/
Dmbedtls.doxyfile277 # definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
278 # func(std::string) {}). This also makes the inheritance and collaboration
/openthread-3.4.0/third_party/nlbuild-autotools/repo/examples/
DDoxyfile.in331 # definitions whose arguments contain STL classes (e.g. func(std::string);
332 # versus func(std::string) {}). This also make the inheritance and collaboration
/openthread-3.4.0/doc/
DDoxyfile.in342 # definitions whose arguments contain STL classes (e.g. func(std::string);
343 # versus func(std::string) {}). This also make the inheritance and collaboration