• Home
  • Raw
  • Download

Lines Matching refs:rc

286   EncodeNumberStatus rc = EncodeNumberStatus::kSuccess;  in TEST()  local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
303 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
309 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
313 rc = ParseAndEncodeIntegerNumber("32768", type, AssertEmitFunc, &err_msg); in TEST()
314 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
316 rc = ParseAndEncodeIntegerNumber("-32769", type, AssertEmitFunc, &err_msg); in TEST()
317 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
323 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
327 rc = ParseAndEncodeIntegerNumber( in TEST()
329 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
330 rc = ParseAndEncodeIntegerNumber( in TEST()
332 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
333 rc = ParseAndEncodeIntegerNumber( in TEST()
336 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
337 rc = ParseAndEncodeIntegerNumber( in TEST()
340 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
343 rc = ParseAndEncodeIntegerNumber( in TEST()
346 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
347 rc = ParseAndEncodeIntegerNumber( in TEST()
350 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
355 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
359 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
360 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
362 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
363 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
365 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
366 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
368 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
369 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
371 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
372 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
374 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
375 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
377 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
378 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
384 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
389 rc = ParseAndEncodeIntegerNumber("65536", type, AssertEmitFunc, &err_msg); in TEST()
390 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
396 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
400 rc = ParseAndEncodeIntegerNumber( in TEST()
402 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
403 rc = ParseAndEncodeIntegerNumber( in TEST()
406 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
409 rc = ParseAndEncodeIntegerNumber( in TEST()
412 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
417 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
421 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
422 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
424 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
425 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
427 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
428 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
430 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
431 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
433 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
434 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
440 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
444 rc = in TEST()
446 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
449 rc = ParseAndEncodeIntegerNumber("-2147483649", type, AssertEmitFunc, in TEST()
451 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
458 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
462 rc = ParseAndEncodeIntegerNumber( in TEST()
464 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
465 rc = ParseAndEncodeIntegerNumber( in TEST()
467 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
468 rc = ParseAndEncodeIntegerNumber( in TEST()
471 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
472 rc = ParseAndEncodeIntegerNumber( in TEST()
475 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
478 rc = ParseAndEncodeIntegerNumber( in TEST()
481 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
482 rc = ParseAndEncodeIntegerNumber( in TEST()
485 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
490 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
494 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
495 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
497 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
498 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
500 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
501 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
503 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
504 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
506 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
507 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
509 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
510 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
512 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
513 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
519 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
524 rc = in TEST()
526 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
533 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
537 rc = ParseAndEncodeIntegerNumber( in TEST()
539 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
540 rc = ParseAndEncodeIntegerNumber( in TEST()
543 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
546 rc = ParseAndEncodeIntegerNumber( in TEST()
549 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
554 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
558 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
559 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
561 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
562 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
564 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
565 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
567 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
568 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
570 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
571 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
577 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
581 rc = ParseAndEncodeIntegerNumber("9223372036854775808", type, AssertEmitFunc, in TEST()
583 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
587 rc = ParseAndEncodeIntegerNumber("-9223372036854775809", type, AssertEmitFunc, in TEST()
589 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
595 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
604 rc = ParseAndEncodeIntegerNumber("0", type, emit, nullptr); in TEST()
605 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
607 rc = ParseAndEncodeIntegerNumber("-0", type, emit, nullptr); in TEST()
608 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
610 rc = ParseAndEncodeIntegerNumber("9223372036854775807", type, emit, nullptr); in TEST()
611 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
613 rc = ParseAndEncodeIntegerNumber("-9223372036854775808", type, emit, nullptr); in TEST()
614 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
616 rc = ParseAndEncodeIntegerNumber("-1", type, emit, nullptr); in TEST()
617 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
621 rc = ParseAndEncodeIntegerNumber("0x7fffffffffffffff", type, emit, nullptr); in TEST()
622 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
624 rc = ParseAndEncodeIntegerNumber("0xffffffffffffffff", type, emit, nullptr); in TEST()
625 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
631 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
636 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
637 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
639 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
640 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
642 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
643 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
645 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
646 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
648 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
649 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
651 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
652 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
654 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
655 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
661 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
666 rc = ParseAndEncodeIntegerNumber("18446744073709551616", type, AssertEmitFunc, in TEST()
668 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
674 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
683 rc = ParseAndEncodeIntegerNumber("0", type, emit, nullptr); in TEST()
684 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
686 rc = ParseAndEncodeIntegerNumber("18446744073709551615", type, emit, nullptr); in TEST()
687 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
691 rc = ParseAndEncodeIntegerNumber("0xffffffffffffffff", type, emit, nullptr); in TEST()
692 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
697 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
701 rc = ParseAndEncodeIntegerNumber( in TEST()
703 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
708 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
711 rc = ParseAndEncodeIntegerNumber("invalid", type, AssertEmitFunc, nullptr); in TEST()
712 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
716 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
720 rc = ParseAndEncodeIntegerNumber( in TEST()
722 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
727 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
732 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
733 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
735 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
736 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
740 rc = ParseAndEncodeFloatingPointNumber( in TEST()
742 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
743 rc = ParseAndEncodeFloatingPointNumber( in TEST()
746 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
747 rc = ParseAndEncodeFloatingPointNumber( in TEST()
749 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
750 rc = ParseAndEncodeFloatingPointNumber( in TEST()
753 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
754 rc = ParseAndEncodeFloatingPointNumber( in TEST()
757 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
758 rc = ParseAndEncodeFloatingPointNumber( in TEST()
761 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
762 rc = ParseAndEncodeFloatingPointNumber( in TEST()
765 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
768 rc = in TEST()
770 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
772 rc = ParseAndEncodeFloatingPointNumber("-1e40", type, AssertEmitFunc, in TEST()
774 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
776 rc = ParseAndEncodeFloatingPointNumber("1e400", type, AssertEmitFunc, in TEST()
778 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
780 rc = ParseAndEncodeFloatingPointNumber("-1e400", type, AssertEmitFunc, in TEST()
782 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
787 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
797 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
798 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
800 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
801 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
805 rc = ParseAndEncodeFloatingPointNumber("0.0", type, emit, nullptr); in TEST()
806 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
808 rc = ParseAndEncodeFloatingPointNumber("-0.0", type, emit, nullptr); in TEST()
809 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
811 rc = ParseAndEncodeFloatingPointNumber("42", type, emit, nullptr); in TEST()
812 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
814 rc = ParseAndEncodeFloatingPointNumber("2.5", type, emit, nullptr); in TEST()
815 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
817 rc = ParseAndEncodeFloatingPointNumber("32.5", type, emit, nullptr); in TEST()
818 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
820 rc = ParseAndEncodeFloatingPointNumber("1e38", type, emit, nullptr); in TEST()
821 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
823 rc = ParseAndEncodeFloatingPointNumber("-1e38", type, emit, nullptr); in TEST()
824 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
826 rc = ParseAndEncodeFloatingPointNumber("1e40", type, emit, nullptr); in TEST()
827 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
829 rc = ParseAndEncodeFloatingPointNumber("-1e40", type, emit, nullptr); in TEST()
830 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
834 rc = ParseAndEncodeFloatingPointNumber("1e400", type, AssertEmitFunc, in TEST()
836 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
838 rc = ParseAndEncodeFloatingPointNumber("-1e400", type, AssertEmitFunc, in TEST()
840 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
845 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
850 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
851 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
853 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
854 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
858 rc = ParseAndEncodeFloatingPointNumber( in TEST()
860 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
861 rc = ParseAndEncodeFloatingPointNumber( in TEST()
863 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
864 rc = ParseAndEncodeFloatingPointNumber( in TEST()
866 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
867 rc = ParseAndEncodeFloatingPointNumber( in TEST()
869 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
870 rc = ParseAndEncodeFloatingPointNumber( in TEST()
872 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
875 rc = in TEST()
877 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
879 rc = ParseAndEncodeFloatingPointNumber("-1e38", type, AssertEmitFunc, in TEST()
881 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
883 rc = in TEST()
885 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
887 rc = ParseAndEncodeFloatingPointNumber("-1e40", type, AssertEmitFunc, in TEST()
889 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
891 rc = ParseAndEncodeFloatingPointNumber("1e400", type, AssertEmitFunc, in TEST()
893 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
895 rc = ParseAndEncodeFloatingPointNumber("-1e400", type, AssertEmitFunc, in TEST()
897 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
902 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
906 rc = ParseAndEncodeFloatingPointNumber( in TEST()
908 EXPECT_EQ(EncodeNumberStatus::kInvalidUsage, rc); in TEST()
913 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
916 rc = ParseAndEncodeFloatingPointNumber("invalid", type, AssertEmitFunc, in TEST()
918 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
922 EncodeNumberStatus rc = EncodeNumberStatus::kInvalidText; in TEST() local
926 rc = ParseAndEncodeFloatingPointNumber( in TEST()
928 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
933 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
938 rc = ParseAndEncodeNumber("something wrong", type, AssertEmitFunc, &err_msg); in TEST()
939 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
943 rc = ParseAndEncodeNumber("something wrong", type, AssertEmitFunc, nullptr); in TEST()
944 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
948 rc = ParseAndEncodeNumber("-1", type, in TEST()
951 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
956 rc = ParseAndEncodeNumber( in TEST()
958 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
962 rc = ParseAndEncodeNumber("-1.0", type, in TEST()
965 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()