diff options
| author | chenzizhan <[email protected]> | 2023-11-03 17:00:50 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-11-03 17:00:50 +0800 |
| commit | 5d620841ecb273a80699ebbb0904d52be1f4e031 (patch) | |
| tree | 1a851cabfcfffc82fe090041b0c2fc948ce51c73 | |
| parent | 2d1bddcf2bb104e0de886a75d31360806517cd47 (diff) | |
fix ci(merge wrong)
| -rw-r--r-- | test/test_metric_hll.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/test/test_metric_hll.cpp b/test/test_metric_hll.cpp index 6265d5d..4f7f9d2 100644 --- a/test/test_metric_hll.cpp +++ b/test/test_metric_hll.cpp @@ -1,4 +1,3 @@ - #include <gtest/gtest.h> #include "fieldstat.h" #include "utils.hpp" @@ -158,27 +157,6 @@ TEST(metric_test_hll, serialize_with_b64_and_query_with_python_api) char *blob = NULL; size_t blob_len = 0; - fieldstat_get_serialized_blob(instance, 0, 0, 0, &blob, &blob_len); - - bool flag = fieldstat_is_hll(blob); - EXPECT_EQ(flag, true); - - void *hll_from_blob = hll_base64_decode(blob); - EXPECT_NEAR(ST_hyperloglog_count((struct ST_hyperloglog *)hll_from_blob), 3, 0.5); - free(blob); - fieldstat_free(instance); - ST_hyperloglog_free((struct ST_hyperloglog *)hll_from_blob); -} - -TEST(metric_test_hll, add_or_set_with_wrong_cell_id_expecting_fail) -{ - struct fieldstat *instance = test_init_standard_instance_one_cube_one_metric_one_cell_hll(); - fieldstat_hll_add(instance, 0, 0, &TEST_TAG_INT, 1, "hello", 5); - fieldstat_hll_add(instance, 0, 0, &TEST_TAG_INT, 1, "wor", 3); - fieldstat_hll_add(instance, 0, 0, &TEST_TAG_INT, 1, "world", 5); - - char *blob = NULL; - size_t blob_len = 0; fieldstat_get_serialized_blob(instance, 0, 0, &TEST_TAG_LIST_INT, &blob, &blob_len); bool flag = fieldstat_is_hll(blob); @@ -223,4 +201,4 @@ int main(int argc, char *argv[]) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); -}
\ No newline at end of file +} |
