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

Function TEST

be/src/catalog/catalog-util-test.cc:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38TEST(CatalogUtil, TestCatalogCompression) {
39 CompressAndDecompress("");
40 CompressAndDecompress("deadbeef");
41 string large_string;
42 uint32_t large_string_size = 0x7E000000; // LZ4_MAX_INPUT_SIZE
43 large_string.reserve(large_string_size);
44 for (uint32_t i = 0; i < large_string_size; ++i) {
45 large_string.push_back(static_cast<char>(rand() % (1 + numeric_limits<char>::max())));
46 }
47 CompressAndDecompress(large_string);
48}
49
50TEST(CatalogUtil, TestTPrivilegeFromObjectName) {
51 vector<tuple<string, TPrivilegeLevel::type>> actions = {

Callers

nothing calls this directly

Calls 6

CompressAndDecompressFunction · 0.85
maxFunction · 0.85
TPrivilegeFromObjectNameFunction · 0.85
SubstituteFunction · 0.85
reserveMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected