MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/flight/flight_internals_test.cc:103–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103TEST(FlightTypes, Action) {
104 std::vector<Action> values = {
105 {"type", Buffer::FromString("")},
106 {"type", Buffer::FromString("foo")},
107 {"type", Buffer::FromString("bar")},
108 };
109 std::vector<std::string> reprs = {
110 "<Action type='type' body=(0 bytes)>",
111 "<Action type='type' body=(3 bytes)>",
112 "<Action type='type' body=(3 bytes)>",
113 };
114
115 ASSERT_NO_FATAL_FAILURE(TestRoundtrip<pb::Action>(values, reprs));
116
117 // This doesn't roundtrip since we don't differentiate between no
118 // body and empty body on the wire
119 Action action{"", nullptr};
120 ASSERT_EQ("<Action type='' body=(nullptr)>", action.ToString());
121 ASSERT_NE(values[0], action);
122 ASSERT_EQ(action, action);
123}
124
125TEST(FlightTypes, ActionType) {
126 std::vector<ActionType> values = {

Callers

nothing calls this directly

Calls 15

FromStringFunction · 0.85
MakeFlightInfoFunction · 0.85
MakeFlightErrorFunction · 0.85
FromGrpcStatusFunction · 0.85
ToGrpcStatusFunction · 0.85
KeyErrorFunction · 0.85
AlreadyExistsFunction · 0.85
FlightDataDeserializeFunction · 0.85
ArrayFromJSONFunction · 0.85
ConcatenateBuffersFunction · 0.85
DeserializeFlightDataFunction · 0.85

Tested by

no test coverage detected