Home
last modified time | relevance | path

Searched refs:expected_code (Results 1 – 21 of 21) 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/core/distributed_runtime/rpc/eager/
Dgrpc_eager_client_test.cc49 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/
Dpacket_writer.cc117 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/
Dutils.cc203 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()
Dutils.h87 void CheckEq(int actual_code, int expected_code);
/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/tensorflow/tensorflow/c/kernels/
Dsummary_op_test.cc55 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()
Dbitcast_op_test.cc37 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.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.cc65 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/
Ddbus_object_test.cc147 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/
Dconvert_nodes_test.cc940 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/
Dmodular_filesystem_test.cc180 bool UnimplementedOrReturnsCode(Status actual_status, Code expected_code) { in UnimplementedOrReturnsCode() argument
182 return (actual_code == Code::UNIMPLEMENTED) || (actual_code == expected_code); in UnimplementedOrReturnsCode()