Home
last modified time | relevance | path

Searched refs:ParseDictionaryFile (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Fuzzer/test/
DFuzzerUnittest.cpp397 TEST(FuzzerDictionary, ParseDictionaryFile) { in TEST() argument
399 EXPECT_FALSE(ParseDictionaryFile("zzz\n", &Units)); in TEST()
400 EXPECT_FALSE(ParseDictionaryFile("", &Units)); in TEST()
401 EXPECT_TRUE(ParseDictionaryFile("\n", &Units)); in TEST()
403 EXPECT_TRUE(ParseDictionaryFile("#zzzz a b c d\n", &Units)); in TEST()
405 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\n", &Units)); in TEST()
407 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\n", &Units)); in TEST()
409 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\naaa=\"aa\"", &Units)); in TEST()
412 ParseDictionaryFile(" #zzzz\naaa=\"aa\"\n\nabc=\"abc\"", &Units)); in TEST()
/external/llvm/lib/Fuzzer/
DFuzzerUtil.cpp221 bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) { in ParseDictionaryFile() function
DFuzzerInternal.h152 bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units);
DFuzzerDriver.cpp330 if (!ParseDictionaryFile(FileToString(Flags.dict), &Dictionary)) in FuzzerDriver()