diff options
| author | liuwentan <[email protected]> | 2024-04-03 16:47:30 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2024-04-03 16:47:30 +0800 |
| commit | 7e25f48fdd7f08d80d2eeaee654c48e21f686ab6 (patch) | |
| tree | 6c64febed55d04d70c623da498f8844c35a02c30 /test/maat_framework_gtest.cpp | |
| parent | cbabcbd6b0afd766c11b67f6732093819b82da55 (diff) | |
[PATCH]delete useless codev4.1.34
Diffstat (limited to 'test/maat_framework_gtest.cpp')
| -rw-r--r-- | test/maat_framework_gtest.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/maat_framework_gtest.cpp b/test/maat_framework_gtest.cpp index 3c74a01..58b35ce 100644 --- a/test/maat_framework_gtest.cpp +++ b/test/maat_framework_gtest.cpp @@ -58,19 +58,6 @@ int del_command(struct maat *maat_inst, int compile_id) compile_id, "null", 1, 0); } -static void random_keyword_generate(char *keyword_buf, size_t sz) -{ -#define MIN_KEYWORD_LEN 4 - size_t i = 0; - size_t len = random() % (sz - 1 - MIN_KEYWORD_LEN) + MIN_KEYWORD_LEN; - - for (i = 0; i < len; i++) { - keyword_buf[i] = 'a' + random() % ('z' - 'a'); - } - - keyword_buf[i] = '\0'; -} - const char *watched_json = "./json_update/maat.json"; const char *old_json = "./json_update/old.json"; const char *new_json = "./json_update/new.json"; |
