| 12 | }; |
| 13 | |
| 14 | TEST(CApiValueTestEmptyDB, CreateNull) { |
| 15 | lbug_value* value = lbug_value_create_null(); |
| 16 | ASSERT_FALSE(value->_is_owned_by_cpp); |
| 17 | auto cppValue = static_cast<Value*>(value->_value); |
| 18 | ASSERT_EQ(cppValue->getDataType().getLogicalTypeID(), LogicalTypeID::ANY); |
| 19 | ASSERT_EQ(cppValue->isNull(), true); |
| 20 | lbug_value_destroy(value); |
| 21 | } |
| 22 | |
| 23 | TEST(CApiValueTestEmptyDB, CreateNullWithDatatype) { |
| 24 | lbug_logical_type type; |
nothing calls this directly
no test coverage detected