/external/yapf/yapftests/ |
D | yapf_test_helper.py | 34 def assertCodeEqual(self, expected_code, code): argument 35 if code != expected_code: 38 for l in expected_code.splitlines(): 53 expected_code.splitlines(),
|
D | reformatter_basic_test.py | 1296 expected_code = textwrap.dedent("""\ 1305 self.assertEqual(expected_code, reformatter.Reformat(uwlines)) 2156 expected_code = textwrap.dedent("""\ 2161 self.assertEqual(expected_code, reformatter.Reformat(uwlines)) 2171 expected_code = textwrap.dedent("""\ 2179 self.assertEqual(expected_code, reformatter.Reformat(uwlines)) 2193 expected_code = textwrap.dedent('''\ 2204 self.assertEqual(expected_code, reformatter.Reformat(uwlines)) 2250 expected_code = textwrap.dedent('''\ 2260 self.assertEqual(expected_code, reformatter.Reformat(uwlines)) [all …]
|
D | yapf_test.py | 71 def assertCodeEqual(self, expected_code, code): argument 72 if code != expected_code: 75 msg += '\n > '.join(expected_code.splitlines())
|
/external/grpc-grpc/src/python/grpcio_tests/tests/http2/ |
D | negative_http2_client.py | 33 def _expect_status_code(call, expected_code): argument 34 if call.code() != expected_code: 35 raise ValueError('expected code %s, got %s' % (expected_code, 45 def _validate_status_code_and_details(call, expected_code, expected_details): argument 46 _expect_status_code(call, expected_code)
|
/external/tensorflow/tensorflow/c/kernels/ |
D | bitcast_op_test.cc | 38 TensorShape expected_shape, error::Code expected_code) { in TestBitcastOp() argument 70 ASSERT_EQ(expected_code, ctx.status().code()); in TestBitcastOp() 71 if (expected_code == error::OK) { in TestBitcastOp()
|
/external/perfetto/src/perfetto_cmd/ |
D | packet_writer.cc | 83 void CheckEq(int actual_code, int expected_code); 223 void ZipPacketWriter::CheckEq(int actual_code, int expected_code) { in CheckEq() argument 224 if (actual_code == expected_code) in CheckEq() 226 PERFETTO_FATAL("Expected %d got %d: %s", actual_code, expected_code, in CheckEq()
|
/external/grpc-grpc/test/cpp/interop/ |
D | http2_client.cc | 57 bool Http2Client::AssertStatusCode(const Status& s, StatusCode expected_code) { in AssertStatusCode() argument 58 if (s.error_code() == expected_code) { in AssertStatusCode() 63 s.error_code(), expected_code, s.error_message().c_str()); in AssertStatusCode()
|
D | http2_client.h | 57 bool AssertStatusCode(const Status& s, StatusCode expected_code);
|
D | interop_client.h | 123 bool AssertStatusCode(const Status& s, StatusCode expected_code,
|
D | interop_client.cc | 132 const Status& s, StatusCode expected_code, in AssertStatusCode() argument 134 if (s.error_code() == expected_code) { in AssertStatusCode() 141 s.error_code(), expected_code, s.error_message().c_str(), in AssertStatusCode()
|
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/ |
D | _metadata_code_details_test.py | 313 for abort_code, expected_code, expected_details in test_cases: 333 self.assertIs(expected_code, exception_context.exception.code()) 340 for abort_code, expected_code, expected_details in test_cases: 363 self.assertIs(expected_code, response_iterator_call.code()) 369 for abort_code, expected_code, expected_details in test_cases: 391 self.assertIs(expected_code, exception_context.exception.code()) 398 for abort_code, expected_code, expected_details in test_cases: 422 self.assertIs(expected_code, response_iterator_call.code())
|
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/ |
D | methods.py | 102 def _expect_status_code(call, expected_code): argument 103 if call.code() != expected_code: 104 raise ValueError('expected code %s, got %s' % (expected_code, 114 def _validate_status_code_and_details(call, expected_code, expected_details): argument 115 _expect_status_code(call, expected_code)
|
/external/grpc-grpc/src/ruby/spec/ |
D | client_server_spec.rb | 277 def client_cancel_test(cancel_proc, expected_code, argument 308 expect(client_batch.status.code).to be expected_code 313 expected_code = StatusCodes::CANCELLED 316 client_cancel_test(cancel_proc, expected_code, expected_details)
|
/external/tensorflow/tensorflow/c/ |
D | while_loop_test.cc | 66 void ExpectError(TF_Code expected_code, const string& expected_msg) { in ExpectError() argument 68 EXPECT_EQ(expected_code, TF_GetCode(s_)); in ExpectError()
|
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/ |
D | convert_nodes_test.cc | 893 error::Code expected_code = error::OK, in TEST_F() 918 expected_code, expected_error_msg_substr); in TEST_F() 919 if (expected_code == error::OK) { in TEST_F() 927 expected_code, expected_error_msg_substr); in TEST_F() 928 if (expected_code == error::OK) { in TEST_F() 1241 error::Code expected_code = error::OK, in RunValidation() argument 1255 expected_code, expected_msg_substr); in RunValidation() 1259 error::Code expected_code = error::OK, in RunConversion() argument 1261 ExpectStatus(converter_->ConvertNode(node_def), expected_code, in RunConversion() 1268 error::Code expected_code = error::OK, in RunValidationAndConversion() argument [all …]
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object_unittest.cc | 149 void ExpectError(dbus::Response* response, const std::string& expected_code) { in ExpectError() argument 151 EXPECT_EQ(expected_code, response->GetErrorName()); in ExpectError()
|