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

Function TEST

cpp/src/arrow/extension/uuid_test.cc:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using arrow::ipc::test::RoundtripBatch;
33
34TEST(TestUuuidExtensionType, ExtensionTypeTest) {
35 auto type = uuid();
36 ASSERT_EQ(type->id(), Type::EXTENSION);
37
38 const auto& ext_type = static_cast<const ExtensionType&>(*type);
39 std::string serialized = ext_type.Serialize();
40
41 ASSERT_OK_AND_ASSIGN(auto deserialized,
42 ext_type.Deserialize(fixed_size_binary(16), serialized));
43 ASSERT_TRUE(deserialized->Equals(*type));
44 ASSERT_FALSE(deserialized->Equals(*fixed_size_binary(16)));
45}
46
47TEST(TestUuuidExtensionType, RoundtripBatch) {
48 auto ext_type = extension::uuid();

Callers

nothing calls this directly

Calls 15

fixed_size_binaryFunction · 0.85
ArrayFromJSONFunction · 0.85
RoundtripBatchFunction · 0.85
CompareBatchFunction · 0.85
key_value_metadataFunction · 0.85
storage_typeMethod · 0.80
uuidFunction · 0.70
MakeFunction · 0.70
fieldFunction · 0.50
schemaFunction · 0.50
idMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected