| 2188 | |
| 2189 | template <> |
| 2190 | void TestTemporalSchemaElementConstruction::Inspect<format::TimestampType>() { |
| 2191 | TestSchemaElementConstruction::Inspect(); |
| 2192 | ASSERT_EQ(element_->logicalType.TIMESTAMP.isAdjustedToUTC, adjusted_); |
| 2193 | switch (unit_) { |
| 2194 | case LogicalType::TimeUnit::MILLIS: |
| 2195 | ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.MILLIS); |
| 2196 | break; |
| 2197 | case LogicalType::TimeUnit::MICROS: |
| 2198 | ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.MICROS); |
| 2199 | break; |
| 2200 | case LogicalType::TimeUnit::NANOS: |
| 2201 | ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.NANOS); |
| 2202 | break; |
| 2203 | case LogicalType::TimeUnit::UNKNOWN: |
| 2204 | default: |
| 2205 | FAIL() << "Invalid time unit in test case"; |
| 2206 | } |
| 2207 | return; |
| 2208 | } |
| 2209 | |
| 2210 | TEST_F(TestTemporalSchemaElementConstruction, TemporalCases) { |
| 2211 | auto check_TIME = [this]() { return element_->logicalType.__isset.TIME; }; |
nothing calls this directly
no outgoing calls
no test coverage detected