Lines Matching refs:p

255     let mut p = Parser {  in test_question_pack_unpack()  localVariable
266 let got = p.question()?; in test_question_pack_unpack()
268 p.off, in test_question_pack_unpack()
271 p.off, in test_question_pack_unpack()
406 let mut p = Parser::default(); in test_parser_start() localVariable
407 let result = p.start(&[]); in test_parser_start()
418 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
422 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
426 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
430 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
434 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
438 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
442 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
446 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
450 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
455 let mut p = Parser::default(); in test_resource_not_started() localVariable
456 if let Err(err) = test_fn(&mut p) { in test_resource_not_started()
540 let mut p = Parser::default(); in test_skip_all() localVariable
541 p.start(&buf)?; in test_skip_all()
544 p.skip_all_questions()?; in test_skip_all()
547 p.skip_all_answers()?; in test_skip_all()
550 p.skip_all_authorities()?; in test_skip_all()
553 p.skip_all_additionals()?; in test_skip_all()
563 let mut p = Parser::default(); in test_skip_each() localVariable
564 p.start(&buf)?; in test_skip_each()
571 p.skip_question()?; in test_skip_each()
572 if let Err(err) = p.skip_question() { in test_skip_each()
578 p.skip_answer()?; in test_skip_each()
579 if let Err(err) = p.skip_answer() { in test_skip_each()
585 p.skip_authority()?; in test_skip_each()
586 if let Err(err) = p.skip_authority() { in test_skip_each()
592 p.skip_additional()?; in test_skip_each()
593 if let Err(err) = p.skip_additional() { in test_skip_each()
606 let mut p = Parser::default(); in test_skip_after_read() localVariable
607 p.start(&buf)?; in test_skip_after_read()
612 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.question().map(|_| ()) }), in test_skip_after_read()
616 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.answer().map(|_| ()) }), in test_skip_after_read()
620 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.authority().map(|_| ()) }), in test_skip_after_read()
624 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.additional().map(|_| ()) }), in test_skip_after_read()
629 read_fn(&mut p)?; in test_skip_after_read()
632 "Question" => p.skip_question(), in test_skip_after_read()
633 "Answer" => p.skip_answer(), in test_skip_after_read()
634 "Authority" => p.skip_authority(), in test_skip_after_read()
635 _ => p.skip_additional(), in test_skip_after_read()
653 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_questions() }), in test_skip_not_started()
657 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_answers() }), in test_skip_not_started()
661 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_authorities() }), in test_skip_not_started()
665 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_additionals() }), in test_skip_not_started()
669 let mut p = Parser::default(); in test_skip_not_started() localVariable
671 if let Err(err) = test_fn(&mut p) { in test_skip_not_started()