Lines Matching refs:CheckOverflow

26 static void CheckOverflow(T expected, const char* value, bool should_overflow) {  in CheckOverflow()  function
43 CheckOverflow<int16_t>(std::numeric_limits<int16_t>::min(), "-32768", false); in TEST()
44 CheckOverflow<int16_t>(0, "-32769", true); in TEST()
45 CheckOverflow<int16_t>(std::numeric_limits<int16_t>::max(), "32767", false); in TEST()
46 CheckOverflow<int16_t>(0, "32768", true); in TEST()
48 CheckOverflow<uint16_t>(std::numeric_limits<uint16_t>::max(), "65535", false); in TEST()
49 CheckOverflow<uint16_t>(0, "65536", true); in TEST()
53 CheckOverflow<int32_t>(std::numeric_limits<int32_t>::min(), "-2147483648", false); in TEST()
54 CheckOverflow<int32_t>(0, "-2147483649", true); in TEST()
55 CheckOverflow<int32_t>(std::numeric_limits<int32_t>::max(), "2147483647", false); in TEST()
56 CheckOverflow<int32_t>(0, "2147483648", true); in TEST()
58 CheckOverflow<uint32_t>(std::numeric_limits<uint32_t>::max(), "4294967295", false); in TEST()
59 CheckOverflow<uint32_t>(0, "4294967296", true); in TEST()
63 CheckOverflow<int64_t>(std::numeric_limits<int64_t>::min(), "-9223372036854775808", false); in TEST()
64 CheckOverflow<int64_t>(0, "-9223372036854775809", true); in TEST()
65 CheckOverflow<int64_t>(std::numeric_limits<int64_t>::max(), "9223372036854775807", false); in TEST()
66 CheckOverflow<int64_t>(0, "9223372036854775808", true); in TEST()
68 CheckOverflow<uint64_t>(std::numeric_limits<uint64_t>::max(), "18446744073709551615", false); in TEST()
69 CheckOverflow<uint64_t>(0, "18446744073709551616", true); in TEST()