MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / TEST_P

Function TEST_P

src/Compression/tests/gtest_compressionCodec.cpp:524–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522};
523
524TEST_P(CodecTest, TranscodingWithDataType)
525{
526 /// Gorilla and ALP can only be applied to floating point columns
527 const auto & codec_statement = std::get<0>(GetParam()).codec_statement;
528 const bool codec_is_float_point = codec_statement.contains("Gorilla") || codec_statement.contains("ALP");
529 const WhichDataType which(std::get<1>(GetParam()).data_type.get());
530 const bool data_is_float = which.isFloat();
531 if (codec_is_float_point && !data_is_float)
532 GTEST_SKIP() << "Skipping Float-point-compressed non-float column";
533
534 const auto codec = makeCodec(CODEC_WITH_DATA_TYPE);
535 testTranscoding(*codec);
536}
537
538
539// Param is tuple-of-tuple to simplify instantiating with values, since typically group of cases test only one codec.

Callers

nothing calls this directly

Calls 15

makeCodecFunction · 0.85
testTranscodingFunction · 0.85
AsHexStringFunction · 0.85
EqualByteContainersFunction · 0.85
beginFunction · 0.85
sqrtFunction · 0.85
CityHash64Function · 0.85
isFloatMethod · 0.80
MessageClass · 0.50
endFunction · 0.50
sortFunction · 0.50

Tested by

no test coverage detected