summaryrefslogtreecommitdiff
path: root/test/utils.cpp
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-07-07 18:06:09 +0800
committerchenzizhan <[email protected]>2023-07-07 18:06:09 +0800
commit65a2950c9106bf8b8a22fca99451d56bb03e1172 (patch)
tree94dcc9e4da115da3d2f7fc8a45a389530c73d0e9 /test/utils.cpp
parentd8e0bcfee35f13c5ba306734cd4bc64662e1416f (diff)
metric
Diffstat (limited to 'test/utils.cpp')
-rw-r--r--test/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/utils.cpp b/test/utils.cpp
index 5bc6a54..c1619a9 100644
--- a/test/utils.cpp
+++ b/test/utils.cpp
@@ -33,7 +33,7 @@ string gen_rand_string(int len)
/* taglist wrapper */
/* -------------------------------------------------------------------------- */
-Fieldstat_tag_list_wrapper::Fieldstat_tag_list_wrapper(const struct fieldstat_tag_list *tag_list) {
+Fieldstat_tag_list_wrapper::Fieldstat_tag_list_wrapper(const struct fieldstat_tag_group *tag_list) {
tag_list_c.tag = (struct fieldstat_tag *)malloc(sizeof(struct fieldstat_tag) * tag_list->n_tag);
tag_list_c.n_tag = tag_list->n_tag;
for (size_t i = 0; i < tag_list->n_tag; i++)
@@ -95,7 +95,7 @@ Fieldstat_tag_list_wrapper::Fieldstat_tag_list_wrapper() {
}
Fieldstat_tag_list_wrapper::Fieldstat_tag_list_wrapper(const Fieldstat_tag_list_wrapper &tag_list_wrapper){
- const struct fieldstat_tag_list *tag_list = tag_list_wrapper.get_c_struct();
+ const struct fieldstat_tag_group *tag_list = tag_list_wrapper.get_c_struct();
tag_list_c.tag = (struct fieldstat_tag *)malloc(sizeof(struct fieldstat_tag) * tag_list->n_tag);
tag_list_c.n_tag = tag_list->n_tag;
for (size_t i = 0; i < tag_list->n_tag; i++)
@@ -130,7 +130,7 @@ size_t Fieldstat_tag_list_wrapper::get_tag_count() const
return tag_list_c.n_tag;
}
-const struct fieldstat_tag_list *Fieldstat_tag_list_wrapper::get_c_struct() const
+const struct fieldstat_tag_group *Fieldstat_tag_list_wrapper::get_c_struct() const
{
return &tag_list_c;
}
@@ -162,7 +162,7 @@ void Fieldstat_tag_list_wrapper::print_tag_list() const
bool Fieldstat_tag_list_wrapper::operator==(const Fieldstat_tag_list_wrapper &tag_list_wrapper) const
{
- const struct fieldstat_tag_list *tag_list = tag_list_wrapper.get_c_struct();
+ const struct fieldstat_tag_group *tag_list = tag_list_wrapper.get_c_struct();
if (tag_list_c.n_tag != tag_list->n_tag) {
return false;
}