| /ide/tools/previewer/test/fuzztest/commandparse_fuzzer/ |
| H A D | CommandParse.cpp | 26 int& typeIndex, uint64_t& index, bool changeType) in Execute() 39 ChangeJsonUtil::ModifyObject(jsonArgs, index); in Execute() 41 ChangeJsonUtil::ModifyObject4ChangeType(jsonArgs, index); in Execute() 56 uint64_t index = 0; in CreateAndExecuteCommand() local 61 Execute(key, val, j, index, false); in CreateAndExecuteCommand() 62 Execute(key, val, j, index, true); in CreateAndExecuteCommand() 25 Execute(std::string& commond, std::string& jsonArgsStr, int& typeIndex, uint64_t& index, bool changeType) Execute() argument
|
| H A D | CommandParse.h | 29 uint64_t& index, bool changeType);
|
| /ide/tools/previewer/util/ |
| H A D | JsonReader.cpp | 520 bool Value::Replace(int index, bool value) in Replace() argument 522 if (index < 0 || index >= GetArraySize()) { in Replace() 529 if (!cJSON_ReplaceItemInArray(jsonPtr, index, child)) { in Replace() 536 bool Value::Replace(int index, int32_t value) in Replace() argument 538 return Replace(index, static_cast<double>(value)); in Replace() 541 bool Value::Replace(int index, uint32_t value) in Replace() argument 543 return Replace(index, static_cast<double>(value)); in Replace() 546 bool Value::Replace(int index, int64_t value) in Replace() argument 548 return Replace(index, static_cas in Replace() 551 Replace(int index, double value) Replace() argument 567 Replace(int index, const char* value) Replace() argument 583 Replace(int index, const Value& value) Replace() argument [all...] |
| H A D | JsonReader.h | 102 bool Replace(int index, bool value); 103 bool Replace(int index, int32_t value); 104 bool Replace(int index, uint32_t value); 105 bool Replace(int index, int64_t value); 106 bool Replace(int index, double value); 107 bool Replace(int index, const char* value); 108 bool Replace(int index, const Value& value); 111 Value GetArrayItem(int32_t index) const;
|
| H A D | CommandParser.cpp | 769 for (auto index = regsHelpMap.begin(); index != regsHelpMap.end(); index++) { in HelpText() 770 helpText += "-" + index->first + " "; in HelpText() 771 helpText += index->second + "\n"; in HelpText() 779 std::string index = strs[i]; in ProcessingCommand() local 793 argsMap[index] = args; in ProcessingCommand()
|
| /ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/ |
| H A D | ParamsParseFuzzer.cpp | 54 int index = -1; in SetTestArgs() local 58 index++; in SetTestArgs() 60 args.push_back(DT_SetGetString(&g_Element[index], str.size() + 1, DEFAULT_LENGTH, (char*)str.c_str())); in SetTestArgs()
|
| /ide/tools/previewer/test/unittest/util/ |
| H A D | JsonReaderTest.cpp | 87 int index = 0; in TEST() local 88 EXPECT_EQ(books.GetArrayItem(index++).AsString(), g_name); in TEST() 89 EXPECT_EQ(books.GetArrayItem(index++).AsBool(), g_isChild); in TEST() 90 EXPECT_EQ(books.GetArrayItem(index++).AsInt(), g_age); in TEST() 91 EXPECT_EQ(books.GetArrayItem(index++).AsUInt(), g_code1); in TEST() 92 EXPECT_EQ(books.GetArrayItem(index++).AsInt64(), g_code2); in TEST() 93 EXPECT_EQ(books.GetArrayItem(index++).AsDouble(), g_height); in TEST() 94 EXPECT_EQ(books.GetArrayItem(index)["schoolName"].AsString(), g_schoolName); in TEST() 95 EXPECT_EQ(books.GetArrayItem(index)["schoolAddr"].AsString(), g_schoolAddr); in TEST() 148 int index in TEST() local [all...] |
| H A D | CommandParserTest.cpp | 1034 int index = 0; in TEST_F() local 1035 EXPECT_EQ(CommandParser::GetInstance().GetProjectModelEnumName(index), "FA"); in TEST_F() 1036 index = 1; in TEST_F() 1037 EXPECT_EQ(CommandParser::GetInstance().GetProjectModelEnumName(index), "Stage"); in TEST_F() 1038 index = -1; in TEST_F() 1039 EXPECT_EQ(CommandParser::GetInstance().GetProjectModelEnumName(index), "FA"); in TEST_F() 1040 index = 2; in TEST_F() 1041 EXPECT_EQ(CommandParser::GetInstance().GetProjectModelEnumName(index), "FA"); in TEST_F()
|
| /ide/tools/previewer/test/fuzztest/jsonparse_fuzzer/ |
| H A D | DeviceConfigParseFuzzer.cpp | 62 uint64_t index = 0; in TEST() local 65 ChangeJsonUtil::ModifyObject(jsonArgs, index); in TEST()
|
| H A D | ParseMockJsonFileFuzzer.cpp | 41 uint64_t index = 0; in TEST() local 44 ChangeJsonUtil::ModifyObject(jsonArgs, index); in TEST()
|
| H A D | GetHspAceModuleBuildFuzzer.cpp | 51 uint64_t index = 0; in TEST() local 54 ChangeJsonUtil::ModifyObject(jsonArgs, index); in TEST()
|
| H A D | GetModulePathMapFuzzer.cpp | 62 uint64_t index = 0; in TEST() local 65 ChangeJsonUtil::ModifyObject(jsonArgs, index); in TEST()
|
| H A D | ReadFileContentsFuzzer.cpp | 60 uint64_t index = 0; in TEST() local 63 ChangeJsonUtil::ModifyObject(jsonArgs, index); in TEST()
|