Home
last modified time | relevance | path

Searched refs:expected_code (Results 1 – 16 of 16) sorted by relevance

/external/yapf/yapftests/
Dyapf_test_helper.py34 def assertCodeEqual(self, expected_code, code): argument
35 if code != expected_code:
38 for l in expected_code.splitlines():
53 expected_code.splitlines(),
Dreformatter_basic_test.py1296 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 …]
Dyapf_test.py71 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/
Dnegative_http2_client.py33 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/
Dbitcast_op_test.cc38 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/
Dpacket_writer.cc83 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/
Dhttp2_client.cc57 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()
Dhttp2_client.h57 bool AssertStatusCode(const Status& s, StatusCode expected_code);
Dinterop_client.h123 bool AssertStatusCode(const Status& s, StatusCode expected_code,
Dinterop_client.cc132 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.py313 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/
Dmethods.py102 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/
Dclient_server_spec.rb277 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/
Dwhile_loop_test.cc66 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/
Dconvert_nodes_test.cc893 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/
Ddbus_object_unittest.cc149 void ExpectError(dbus::Response* response, const std::string& expected_code) { in ExpectError() argument
151 EXPECT_EQ(expected_code, response->GetErrorName()); in ExpectError()