| 32 | using arrow::ipc::test::RoundtripBatch; |
| 33 | |
| 34 | TEST(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 | |
| 47 | TEST(TestUuuidExtensionType, RoundtripBatch) { |
| 48 | auto ext_type = extension::uuid(); |
nothing calls this directly
no test coverage detected