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

Method TestFloats

cpp/src/arrow/flight/test_definitions.cc:778–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void DoPutTest::TestFloats() {
779 auto descr = FlightDescriptor::Path({"floats"});
780 RecordBatchVector batches;
781 auto a0 = ArrayFromJSON(float32(), "[0, 1.2, -3.4, 5.6, null]");
782 auto a1 = ArrayFromJSON(float64(), "[0, 1.2, -3.4, 5.6, null]");
783 auto schema = arrow::schema({field("f0", a0->type()), field("f1", a1->type())});
784 batches.push_back(RecordBatch::Make(schema, a0->length(), {a0, a1}));
785
786 CheckDoPut(descr, schema, batches);
787}
788
789void DoPutTest::TestEmptyBatch() {
790 // Sending and receiving a 0-sized batch shouldn't fail

Callers

nothing calls this directly

Calls 8

ArrayFromJSONFunction · 0.85
push_backMethod · 0.80
PathFunction · 0.70
schemaFunction · 0.50
fieldFunction · 0.50
MakeFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected