/external/pigweed/pw_rpc/fuzz/ |
D | argparse_test.cc | 27 auto parser2 = BoolParser("-f").set_default(false); in TEST() local 29 EXPECT_FALSE(parser2.value()); in TEST() 32 EXPECT_EQ(parser2.Parse("-t"), ParseStatus::kParseMismatch); in TEST() 34 EXPECT_FALSE(parser2.value()); in TEST() 37 EXPECT_EQ(parser2.Parse("--true"), ParseStatus::kParseMismatch); in TEST() 39 EXPECT_FALSE(parser2.value()); in TEST() 42 EXPECT_EQ(parser2.Parse("--no-true"), ParseStatus::kParseMismatch); in TEST() 44 EXPECT_FALSE(parser2.value()); in TEST() 47 EXPECT_EQ(parser2.Parse("-f"), ParseStatus::kParsedOne); in TEST() 49 EXPECT_TRUE(parser2.value()); in TEST()
|
/external/flatbuffers/samples/ |
D | sample_bfbs.cpp | 48 flatbuffers::Parser parser2; in main() local 49 ok = parser2.Deserialize(reinterpret_cast<const uint8_t *>(bfbs_file.c_str()), in main() 56 ok = parser2.Parse(json_file.c_str(), include_directories); in main() 68 if (!GenerateText(parser2, parser2.builder_.GetBufferPointer(), &jsongen2)) { in main()
|
/external/libwebm/webm_parser/tests/ |
D | webm_parser_test.cc | 290 WebmParser parser2; in TEST_F() local 291 parser2.Swap(&parser1); in TEST_F() 292 status = parser2.Feed(&expect_nothing, &reader); in TEST_F() 332 WebmParser parser2; in TEST_F() local 333 swap(parser1, parser2); in TEST_F() 334 status = parser2.Feed(&callback, &reader); in TEST_F()
|
/external/python/bumble/tests/ |
D | transport_test.py | 37 parser2 = PacketParser(sink2) 39 for parser in [parser1, parser2]:
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/ |
D | JsonParserSequenceTest.java | 30 JsonParser parser2 = buf2.asParser(); in testJsonParserSequenceOverridesSkipChildren() local 33 JsonParser parserSequence = JsonParserSequence.createFlattened(false, parser1, parser2); in testJsonParserSequenceOverridesSkipChildren()
|
/external/cronet/net/dns/ |
D | dns_response_unittest.cc | 1158 DnsRecordParser parser2 = resp2.Parser(); in TEST() local 1159 ASSERT_TRUE(parser2.IsValid()); in TEST() 1163 EXPECT_TRUE(parser2.ReadRecord(&record)); in TEST() 1164 EXPECT_TRUE(parser2.ReadRecord(&record)); in TEST() 1165 EXPECT_TRUE(parser2.ReadRecord(&record)); in TEST() 1166 EXPECT_TRUE(parser2.ReadRecord(&record)); in TEST() 1167 EXPECT_FALSE(parser2.ReadRecord(&record)); in TEST() 1168 EXPECT_FALSE(parser2.ReadRecord(&record)); in TEST() 1220 DnsRecordParser parser2 = resp2.Parser(); in TEST() local 1221 ASSERT_TRUE(parser2.IsValid()); in TEST() [all …]
|
D | record_parsed_unittest.cc | 64 DnsRecordParser parser2(kT1ResponseWithCacheFlushBit, in TEST() local 69 RecordParsed::CreateFrom(&parser2, base::Time()); in TEST()
|
/external/python/parse_type/tests/ |
D | test_parse.py | 894 parser2 = parse.Parser('test {unit:Unit}-{value:Number}', type_converters) 895 self.assert_match(parser2, 'test meter-10', 'unit', 'meter') 896 self.assert_match(parser2, 'test meter-10', 'value', 10) 897 self.assert_match(parser2, 'test kilometer-20', 'unit', 'kilometer') 898 self.assert_match(parser2, 'test kilometer-20', 'value', 20) 899 self.assert_mismatch(parser2, 'test liter-30', 'unit') 940 parser2 = parse.Parser('test {value:Data}', {'Data': parse_data}) 941 self.assert_match(parser2, 'test a', 'value', 1) 942 self.assert_match(parser2, 'test b', 'value', 2) 943 self.assert_mismatch(parser2, 'test c', 'value')
|
/external/oss-fuzz/projects/uriparser/ |
D | uri_parse_fuzzer.cc | 101 UriParserA parser2; in LLVMFuzzerTestOneInput() local 103 state2.uri = parser2.get_mutable_uri(); in LLVMFuzzerTestOneInput()
|
/external/rust/crates/der-parser/tests/ |
D | der_parser.rs | 229 fn parser2(i: &[u8]) -> BerResult { in test_der_seq_of() function 232 assert_eq!(parser2(&bytes), Ok((empty, expected))); in test_der_seq_of() 244 fn parser2(i: &[u8]) -> BerResult<Vec<BerObject>> { in test_der_seq_of_incomplete() function 248 assert_eq!(parser2(&bytes), Err(Err::Failure(BerError::InvalidTag))); in test_der_seq_of_incomplete() 252 parser2(h), in test_der_seq_of_incomplete()
|
/external/python/absl-py/absl/flags/tests/ |
D | _argument_parser_test.py | 30 parser2 = _argument_parser.FloatParser() 31 self.assertIs(parser1, parser2)
|
/external/flatbuffers/tests/ |
D | test.cpp | 1316 flatbuffers::Parser parser2; in ParseProtoTest() local 1317 TEST_EQ(parser2.Parse(fbs.c_str(), nullptr), true); in ParseProtoTest() 1368 flatbuffers::Parser parser2; in ParseProtoTestWithSuffix() local 1369 TEST_EQ(parser2.Parse(fbs.c_str(), nullptr), true); in ParseProtoTestWithSuffix() 1430 flatbuffers::Parser parser2; in ParseProtoTestWithIncludes() local 1435 TEST_EQ(parser2.Parse(import_fbs.c_str(), include_directories, in ParseProtoTestWithIncludes() 1438 TEST_EQ(parser2.Parse(fbs.c_str(), nullptr), true); in ParseProtoTestWithIncludes() 2029 flatbuffers::Parser parser2; in EnumStringsTest() local 2030 TEST_EQ(parser2.Parse("enum E:byte { A, B, C } table T { F:[int]; }" in EnumStringsTest() 2745 flatbuffers::Parser parser2; in ParseUnionTest() local [all …]
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/ |
D | FastDateParserTest.java | 312 final DateParser parser2 = getInstance(YMD_SLASH); in testEquals() local 314 assertEquals(parser1, parser2); in testEquals() 315 assertEquals(parser1.hashCode(), parser2.hashCode()); in testEquals()
|
/external/rust/crates/nom/src/combinator/ |
D | tests.rs | 173 fn parser2(i: &[u8]) -> IResult<&[u8], u32> { in test_verify_ref() function
|
/external/rust/crates/combine/tests/ |
D | parser.rs | 91 let mut parser2 = sep_by((letter(), letter()), token(',')); in sep_by_committed_error() localVariable 93 parser2.easy_parse("a,bc"); in sep_by_committed_error()
|
/external/spdx-tools/tvloader/parser2v1/ |
D | parse_snippet_test.go | 597 parser2 := tvParser2_1{ 602 err := parser2.parsePair2_1("SnippetSPDXID", string(sid1))
|
D | parse_file_test.go | 912 parser2 := tvParser2_1{ 917 err = parser2.parsePair2_1("SnippetSPDXID", string(sid1))
|
/external/spdx-tools/tvloader/parser2v2/ |
D | parse_snippet_test.go | 625 parser2 := tvParser2_2{ 630 err := parser2.parsePair2_2("SnippetSPDXID", string(sid1))
|
D | parse_file_test.go | 928 parser2 := tvParser2_2{ 933 err = parser2.parsePair2_2("SnippetSPDXID", string(sid1))
|
/external/spdx-tools/tvloader/parser2v3/ |
D | parse_snippet_test.go | 625 parser2 := tvParser2_3{ 630 err := parser2.parsePair2_3("SnippetSPDXID", string(sid1))
|
D | parse_file_test.go | 929 parser2 := tvParser2_3{ 934 err = parser2.parsePair2_3("SnippetSPDXID", string(sid1))
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateTimePatternGenerator.java | 2034 TreeSet<String> parser2 = getSet(skeleton); in skeletonsAreSimilar() local 2035 if (parser1.size() != parser2.size()) { in skeletonsAreSimilar() 2038 Iterator<String> it2 = parser2.iterator(); in skeletonsAreSimilar()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateTimePatternGenerator.java | 2005 TreeSet<String> parser2 = getSet(skeleton); in skeletonsAreSimilar() local 2006 if (parser1.size() != parser2.size()) { in skeletonsAreSimilar() 2009 Iterator<String> it2 = parser2.iterator(); in skeletonsAreSimilar()
|
/external/python/cpython3/Lib/test/ |
D | test_xml_etree.py | 775 parser2 = ET.XMLParser() 776 self.assertIsInstance(parser2.target, ET.TreeBuilder) 3415 parser2 = ET.XMLParser(encoding='utf-8', 3417 parser2.feed(self.sample1) 3418 self._check_sample_element(parser2.close())
|
/external/python/cpython2/Lib/test/ |
D | test_xml_etree.py | 2288 parser2 = ET.XMLParser(encoding='utf-8', 2290 parser2.feed(self.sample1) 2291 self._check_sample_element(parser2.close())
|