/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/core/distributed_runtime/rpc/eager/ |
D | grpc_eager_client_test.cc | 49 error::Code expected_code = i <= 5 ? error::OK : error::INVALID_ARGUMENT; in TEST() local 50 EXPECT_EQ(expected_code, s.code()); in TEST()
|
/external/perfetto/src/perfetto_cmd/ |
D | packet_writer.cc | 117 void CheckEq(int actual_code, int expected_code); 235 void ZipPacketWriter::CheckEq(int actual_code, int expected_code) { in CheckEq() argument 236 if (actual_code == expected_code) in CheckEq() 238 PERFETTO_FATAL("Expected %d got %d: %s", actual_code, expected_code, in CheckEq()
|
/external/perfetto/tools/trace_to_text/ |
D | utils.cc | 203 void DeflateTraceWriter::CheckEq(int actual_code, int expected_code) { in CheckEq() argument 204 if (actual_code == expected_code) in CheckEq() 206 PERFETTO_FATAL("Expected %d got %d: %s", actual_code, expected_code, in CheckEq()
|
D | utils.h | 87 void CheckEq(int actual_code, int expected_code);
|
/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/tensorflow/tensorflow/c/kernels/ |
D | summary_op_test.cc | 55 error::Code expected_code) { in TestScalarSummaryOp() argument 85 ASSERT_EQ(expected_code, ctx.status().code()); in TestScalarSummaryOp() 86 if (expected_code == error::OK) { in TestScalarSummaryOp()
|
D | bitcast_op_test.cc | 37 TensorShape expected_shape, error::Code expected_code) { in TestBitcastOp() argument 69 ASSERT_EQ(expected_code, ctx.status().code()); in TestBitcastOp() 70 if (expected_code == error::OK) { in TestBitcastOp()
|
/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 | 65 void ExpectError(TF_Code expected_code, const string& expected_msg) { in ExpectError() argument 67 EXPECT_EQ(expected_code, TF_GetCode(s_)); in ExpectError()
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object_test.cc | 147 void ExpectError(dbus::Response* response, const std::string& expected_code) { in ExpectError() argument 149 EXPECT_EQ(expected_code, response->GetErrorName()); in ExpectError()
|
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/ |
D | convert_nodes_test.cc | 940 error::Code expected_code = error::OK, in TestPrepareTensorForShape() argument 957 if (expected_code == error::OK) { in TestPrepareTensorForShape() 966 ExpectStatus(status, expected_code, expected_error_msg_substr); in TestPrepareTensorForShape() 1153 error::Code expected_code = error::OK, in TEST_F() 1179 expected_code, expected_error_msg_substr); in TEST_F() 1180 if (expected_code == error::OK) { in TEST_F() 1189 expected_code, expected_error_msg_substr); in TEST_F() 1190 if (expected_code == error::OK) { in TEST_F() 1628 void RunConversion(const Node* node, error::Code expected_code = error::OK, in RunConversion() argument 1630 ExpectStatus(converter_->ConvertNode(node->def()), expected_code, in RunConversion() [all …]
|
/external/tensorflow/tensorflow/c/experimental/filesystem/ |
D | modular_filesystem_test.cc | 180 bool UnimplementedOrReturnsCode(Status actual_status, Code expected_code) { in UnimplementedOrReturnsCode() argument 182 return (actual_code == Code::UNIMPLEMENTED) || (actual_code == expected_code); in UnimplementedOrReturnsCode()
|