Home
last modified time | relevance | path

Searched refs:expected_result (Results 1 – 13 of 13) sorted by relevance

/openthread-3.4.0/tests/scripts/thread-cert/border_router/
Dtest_dnssd_instance_name_with_space.py189 def _assert_dig_result_matches(self, dig_result, expected_result): argument
190 self.assertEqual(dig_result['opcode'], expected_result.get('opcode', 'QUERY'), dig_result)
191 self.assertEqual(dig_result['status'], expected_result.get('status', 'NOERROR'), dig_result)
193 if 'QUESTION' in expected_result:
194 … self.assertEqual(len(dig_result['QUESTION']), len(expected_result['QUESTION']), dig_result)
196 for question in expected_result['QUESTION']:
199 if 'ANSWER' in expected_result:
200 self.assertEqual(len(dig_result['ANSWER']), len(expected_result['ANSWER']), dig_result)
202 for record in expected_result['ANSWER']:
205 if 'ADDITIONAL' in expected_result:
[all …]
Dtest_dnssd_server_multi_border_routers.py343 def _assert_dig_result_matches(self, dig_result, expected_result): argument
344 self.assertEqual(dig_result['opcode'], expected_result.get('opcode', 'QUERY'), dig_result)
345 self.assertEqual(dig_result['status'], expected_result.get('status', 'NOERROR'), dig_result)
347 if 'QUESTION' in expected_result:
348 … self.assertEqual(len(dig_result['QUESTION']), len(expected_result['QUESTION']), dig_result)
350 for question in expected_result['QUESTION']:
353 if 'ANSWER' in expected_result:
354 self.assertEqual(len(dig_result['ANSWER']), len(expected_result['ANSWER']), dig_result)
356 for record in expected_result['ANSWER']:
359 if 'ADDITIONAL' in expected_result:
[all …]
Dtest_dnssd_server.py329 def _assert_dig_result_matches(self, dig_result, expected_result): argument
330 self.assertEqual(dig_result['opcode'], expected_result.get('opcode', 'QUERY'), dig_result)
331 self.assertEqual(dig_result['status'], expected_result.get('status', 'NOERROR'), dig_result)
333 if 'QUESTION' in expected_result:
334 … self.assertEqual(len(dig_result['QUESTION']), len(expected_result['QUESTION']), dig_result)
336 for question in expected_result['QUESTION']:
339 if 'ANSWER' in expected_result:
340 self.assertEqual(len(dig_result['ANSWER']), len(expected_result['ANSWER']), dig_result)
342 for record in expected_result['ANSWER']:
345 if 'ADDITIONAL' in expected_result:
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1parse.function238 /* overfull_result: expected_result from parsing the given string plus
316 int expected_value, int expected_result )
322 TEST_EQUAL( ret, expected_result );
323 if( expected_result == 0 )
368 const char *expected_hex, int expected_result )
375 int expected_result_for_mpi = expected_result;
378 int expected_result_for_int = expected_result;
390 if( expected_result == 0 &&
401 if( expected_result == 0 && expected_value < 0 )
476 const char *expected_hex, int expected_result )
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function328 int expected_result )
359 &returned_id ) == expected_result );
385 if( expected_result == PSA_SUCCESS )
397 void mock_export( int mock_export_return_value, int expected_result )
434 &exported_length ) == expected_result );
451 int expected_result )
479 TEST_ASSERT( psa_generate_key( &attributes, &returned_id) == expected_result );
504 if( expected_result == PSA_SUCCESS )
518 int expected_result )
554 &exported_length ) == expected_result );
[all …]
Dtest_suite_nist_kw.function246 data_t *expected_result )
263 TEST_ASSERT( result_len == expected_result->len );
265 TEST_ASSERT( memcmp( expected_result->x, result, result_len ) == 0 );
281 data_t *expected_result, int expected_ret )
299 TEST_ASSERT( result_len == expected_result->len );
300 TEST_ASSERT( memcmp( expected_result->x, result, result_len ) == 0 );
Dtest_suite_ccm.function199 data_t *expected_result, int output_ret )
233 expected_result->x, expected_result->len ) == 0 );
236 TEST_ASSERT( result[expected_result->len] == 0 &&
237 result[expected_result->len + 1] == 0 );
249 data_t *expected_result, int output_ret )
282 TEST_ASSERT( memcmp( result, expected_result->x,
283 expected_result->len ) == 0 );
Dtest_suite_pkcs1_v15.function125 int expected_result )
224 output_size ) == expected_result );
225 if( expected_result == 0 )
232 else if( expected_result == MBEDTLS_ERR_RSA_INVALID_PADDING ||
233 expected_result == MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE )
Dtest_suite_cmac.function128 data_t * expected_result )
178 TEST_ASSERT( memcmp( output, expected_result->x, block_size ) == 0 );
Dtest_suite_psa_crypto.function3303 psa_status_t expected_result = expected_result_arg;
3321 if( expected_result != PSA_ERROR_INVALID_ARGUMENT &&
3322 expected_result != PSA_ERROR_NOT_SUPPORTED )
3348 TEST_EQUAL( status, expected_result );
3350 if( PSA_SUCCESS == expected_result )
3369 expected_result );
3389 data_t *expected_result )
3439 ASSERT_COMPARE( expected_result->x, expected_result->len,
3466 psa_status_t expected_result = expected_result_arg;
3482 if( expected_result != PSA_ERROR_INVALID_ARGUMENT &&
[all …]
Dtest_suite_ecp.function771 data_t *expected_result )
801 ASSERT_COMPARE( expected_result->x, expected_result->len,
Dtest_suite_psa_crypto_driver_wrappers.function1069 data_t *expected_result,
1120 ASSERT_COMPARE( expected_result->x, expected_result->len,
/openthread-3.4.0/third_party/mbedtls/repo/library/
Dcmac.c843 const unsigned char* expected_result, in cmac_test_wth_cipher() argument
886 if( ( ret = memcmp( output, &expected_result[i * block_size], block_size ) ) != 0 ) in cmac_test_wth_cipher()