Lines Matching refs:err_msg
287 std::string err_msg; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
292 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
295 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
298 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
301 EXPECT_EQ("Invalid signed integer literal: -", err_msg); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
304 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
310 std::string err_msg; in TEST() local
313 rc = ParseAndEncodeIntegerNumber("32768", type, AssertEmitFunc, &err_msg); in TEST()
315 EXPECT_EQ("Integer 32768 does not fit in a 16-bit signed integer", err_msg); in TEST()
316 rc = ParseAndEncodeIntegerNumber("-32769", type, AssertEmitFunc, &err_msg); in TEST()
318 EXPECT_EQ("Integer -32769 does not fit in a 16-bit signed integer", err_msg); in TEST()
356 std::string err_msg; in TEST() local
359 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
361 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
362 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
364 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
365 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
367 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
368 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
370 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
371 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
373 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
374 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
376 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
377 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
379 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
385 std::string err_msg("random content"); in TEST() local
389 rc = ParseAndEncodeIntegerNumber("65536", type, AssertEmitFunc, &err_msg); in TEST()
391 EXPECT_EQ("Integer 65536 does not fit in a 16-bit unsigned integer", err_msg); in TEST()
418 std::string err_msg; in TEST() local
421 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
423 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
424 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
426 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
427 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
429 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
430 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
432 EXPECT_EQ("Invalid signed integer literal: -", err_msg); in TEST()
433 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
435 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
441 std::string err_msg; in TEST() local
445 ParseAndEncodeIntegerNumber("2147483648", type, AssertEmitFunc, &err_msg); in TEST()
448 err_msg); in TEST()
450 &err_msg); in TEST()
453 err_msg); in TEST()
491 std::string err_msg; in TEST() local
494 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
496 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
497 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
499 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
500 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
502 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
503 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
505 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
506 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
508 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
509 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
511 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
512 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
514 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
520 std::string err_msg("random content"); in TEST() local
525 ParseAndEncodeIntegerNumber("4294967296", type, AssertEmitFunc, &err_msg); in TEST()
528 err_msg); in TEST()
555 std::string err_msg; in TEST() local
558 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
560 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
561 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
563 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
564 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
566 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
567 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
569 EXPECT_EQ("Invalid signed integer literal: -", err_msg); in TEST()
570 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
572 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
578 std::string err_msg; in TEST() local
582 &err_msg); in TEST()
586 err_msg); in TEST()
588 &err_msg); in TEST()
590 EXPECT_EQ("Invalid signed integer literal: -9223372036854775809", err_msg); in TEST()
632 std::string err_msg; in TEST() local
636 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
638 EXPECT_EQ("The given text is a nullptr", err_msg); in TEST()
639 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
641 EXPECT_EQ("Invalid unsigned integer literal: ", err_msg); in TEST()
642 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
644 EXPECT_EQ("Invalid unsigned integer literal: =", err_msg); in TEST()
645 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
647 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
648 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
650 EXPECT_EQ("Invalid unsigned integer literal: 0=", err_msg); in TEST()
651 rc = ParseAndEncodeIntegerNumber("-0", type, AssertEmitFunc, &err_msg); in TEST()
653 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
654 rc = ParseAndEncodeIntegerNumber("-1", type, AssertEmitFunc, &err_msg); in TEST()
656 EXPECT_EQ("Cannot put a negative number in an unsigned literal", err_msg); in TEST()
662 std::string err_msg; in TEST() local
667 &err_msg); in TEST()
669 EXPECT_EQ("Invalid unsigned integer literal: 18446744073709551616", err_msg); in TEST()
698 std::string err_msg; in TEST() local
702 "0.0", type, [](uint32_t word) { EXPECT_EQ(0x0u, word); }, &err_msg); in TEST()
704 EXPECT_EQ("The expected type is not a integer type", err_msg); in TEST()
717 std::string err_msg("random content"); in TEST() local
721 "100", type, [](uint32_t word) { EXPECT_EQ(100u, word); }, &err_msg); in TEST()
723 EXPECT_EQ("random content", err_msg); in TEST()
728 std::string err_msg; in TEST() local
732 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
734 EXPECT_EQ("Invalid 32-bit float literal: ", err_msg); in TEST()
735 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
737 EXPECT_EQ("Invalid 32-bit float literal: 0=", err_msg); in TEST()
769 ParseAndEncodeFloatingPointNumber("1e40", type, AssertEmitFunc, &err_msg); in TEST()
771 EXPECT_EQ("Invalid 32-bit float literal: 1e40", err_msg); in TEST()
773 &err_msg); in TEST()
775 EXPECT_EQ("Invalid 32-bit float literal: -1e40", err_msg); in TEST()
777 &err_msg); in TEST()
779 EXPECT_EQ("Invalid 32-bit float literal: 1e400", err_msg); in TEST()
781 &err_msg); in TEST()
783 EXPECT_EQ("Invalid 32-bit float literal: -1e400", err_msg); in TEST()
788 std::string err_msg; in TEST() local
797 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
799 EXPECT_EQ("Invalid 64-bit float literal: ", err_msg); in TEST()
800 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
802 EXPECT_EQ("Invalid 64-bit float literal: 0=", err_msg); in TEST()
835 &err_msg); in TEST()
837 EXPECT_EQ("Invalid 64-bit float literal: 1e400", err_msg); in TEST()
839 &err_msg); in TEST()
841 EXPECT_EQ("Invalid 64-bit float literal: -1e400", err_msg); in TEST()
846 std::string err_msg; in TEST() local
850 rc = ParseAndEncodeFloatingPointNumber("", type, AssertEmitFunc, &err_msg); in TEST()
852 EXPECT_EQ("Invalid 16-bit float literal: ", err_msg); in TEST()
853 rc = ParseAndEncodeFloatingPointNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
855 EXPECT_EQ("Invalid 16-bit float literal: 0=", err_msg); in TEST()
876 ParseAndEncodeFloatingPointNumber("1e38", type, AssertEmitFunc, &err_msg); in TEST()
878 EXPECT_EQ("Invalid 16-bit float literal: 1e38", err_msg); in TEST()
880 &err_msg); in TEST()
882 EXPECT_EQ("Invalid 16-bit float literal: -1e38", err_msg); in TEST()
884 ParseAndEncodeFloatingPointNumber("1e40", type, AssertEmitFunc, &err_msg); in TEST()
886 EXPECT_EQ("Invalid 16-bit float literal: 1e40", err_msg); in TEST()
888 &err_msg); in TEST()
890 EXPECT_EQ("Invalid 16-bit float literal: -1e40", err_msg); in TEST()
892 &err_msg); in TEST()
894 EXPECT_EQ("Invalid 16-bit float literal: 1e400", err_msg); in TEST()
896 &err_msg); in TEST()
898 EXPECT_EQ("Invalid 16-bit float literal: -1e400", err_msg); in TEST()
903 std::string err_msg; in TEST() local
907 "0.0", type, [](uint32_t word) { EXPECT_EQ(0x0u, word); }, &err_msg); in TEST()
909 EXPECT_EQ("The expected type is not a float type", err_msg); in TEST()
923 std::string err_msg("random content"); in TEST() local
927 "0.0", type, [](uint32_t word) { EXPECT_EQ(0x0u, word); }, &err_msg); in TEST()
929 EXPECT_EQ("random content", err_msg); in TEST()
934 std::string err_msg; in TEST() local
938 rc = ParseAndEncodeNumber("something wrong", type, AssertEmitFunc, &err_msg); in TEST()
940 EXPECT_EQ("Invalid unsigned integer literal: something wrong", err_msg); in TEST()
947 err_msg = "random content"; in TEST()
950 &err_msg); in TEST()
952 EXPECT_EQ("random content", err_msg); in TEST()