diff options
| author | 彭宣正 <[email protected]> | 2022-09-05 19:06:35 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2022-09-05 19:15:57 +0800 |
| commit | c022c48a3b4abea0577faf4f3f625ee69684e454 (patch) | |
| tree | 3908c9d3d8b1449d1611245ebd5c2cb8c5efc1f0 /gtest/gtest_get_weixinnum.cpp | |
| parent | 2a0f0af98db078dc159a138ef8d25048807222ea (diff) | |
✨ feat(TSG-11870): 修改数据类型string为buff
Diffstat (limited to 'gtest/gtest_get_weixinnum.cpp')
| -rw-r--r-- | gtest/gtest_get_weixinnum.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtest/gtest_get_weixinnum.cpp b/gtest/gtest_get_weixinnum.cpp index 630fa78..72a71b1 100644 --- a/gtest/gtest_get_weixinnum.cpp +++ b/gtest/gtest_get_weixinnum.cpp @@ -39,7 +39,7 @@ TEST(elua_get_weixinnum, exec_cache_script) struct elua_data output; output.len = 1024; output.type = STRING; - output.string = buff; + output.buff = buff; L = elua_create_vm(NULL); const char *script = get_file_to_buffer("./script/handle_weixinnum.lua", &script_len); @@ -52,7 +52,7 @@ TEST(elua_get_weixinnum, exec_cache_script) EXPECT_EQ(0, ret); EXPECT_EQ(10, output.len); EXPECT_EQ(STRING, output.type); - EXPECT_STREQ("1955740780", output.string); + EXPECT_STREQ("1955740780", output.buff); } TEST(elua_get_weixinnum, exec_cache_script_file) @@ -65,7 +65,7 @@ TEST(elua_get_weixinnum, exec_cache_script_file) struct elua_data output; output.len = 1024; output.type = STRING; - output.string = buff; + output.buff = buff; L = elua_create_vm(NULL); struct elua_script *escript = elua_cache_script_file(L, "./script/handle_weixinnum.lua", 0); const char *data = get_file_to_buffer("./script/weixin_id_ios_20200423_004.pcap", &data_len); @@ -75,5 +75,5 @@ TEST(elua_get_weixinnum, exec_cache_script_file) EXPECT_EQ(0, ret); EXPECT_EQ(10, output.len); EXPECT_EQ(STRING, output.type); - EXPECT_STREQ("1955740780", output.string); + EXPECT_STREQ("1955740780", output.buff); }
\ No newline at end of file |
