Lines Matching refs:Print
235 string Print(const T& value) { in Print() function
237 UniversalPrinter<T>::Print(value, &ss); in Print()
247 UniversalPrinter<T&>::Print(value, &ss); in PrintByRef()
254 EXPECT_EQ("-1", Print(kAE1)); in TEST()
255 EXPECT_EQ("1", Print(kAE2)); in TEST()
259 EXPECT_EQ("-2", Print(kEWP1)); in TEST()
260 EXPECT_EQ("42", Print(kEWP2)); in TEST()
264 EXPECT_EQ("kEWS1", Print(kEWS1)); in TEST()
265 EXPECT_EQ("invalid", Print(static_cast<EnumWithStreaming>(0))); in TEST()
269 EXPECT_EQ("kEWPT1", Print(kEWPT1)); in TEST()
270 EXPECT_EQ("invalid", Print(static_cast<EnumWithPrintTo>(0))); in TEST()
276 EXPECT_EQ("42", Print(BiggestIntConvertible())); in TEST()
283 EXPECT_EQ("'\\0'", Print('\0')); in TEST()
284 EXPECT_EQ("'\\'' (39, 0x27)", Print('\'')); in TEST()
285 EXPECT_EQ("'\"' (34, 0x22)", Print('"')); in TEST()
286 EXPECT_EQ("'?' (63, 0x3F)", Print('?')); in TEST()
287 EXPECT_EQ("'\\\\' (92, 0x5C)", Print('\\')); in TEST()
288 EXPECT_EQ("'\\a' (7)", Print('\a')); in TEST()
289 EXPECT_EQ("'\\b' (8)", Print('\b')); in TEST()
290 EXPECT_EQ("'\\f' (12, 0xC)", Print('\f')); in TEST()
291 EXPECT_EQ("'\\n' (10, 0xA)", Print('\n')); in TEST()
292 EXPECT_EQ("'\\r' (13, 0xD)", Print('\r')); in TEST()
293 EXPECT_EQ("'\\t' (9)", Print('\t')); in TEST()
294 EXPECT_EQ("'\\v' (11, 0xB)", Print('\v')); in TEST()
295 EXPECT_EQ("'\\x7F' (127)", Print('\x7F')); in TEST()
296 EXPECT_EQ("'\\xFF' (255)", Print('\xFF')); in TEST()
297 EXPECT_EQ("' ' (32, 0x20)", Print(' ')); in TEST()
298 EXPECT_EQ("'a' (97, 0x61)", Print('a')); in TEST()
303 EXPECT_EQ("'\\0'", Print(static_cast<signed char>('\0'))); in TEST()
305 Print(static_cast<signed char>(-50))); in TEST()
310 EXPECT_EQ("'\\0'", Print(static_cast<unsigned char>('\0'))); in TEST()
312 Print(static_cast<unsigned char>('b'))); in TEST()
319 EXPECT_EQ("false", Print(false)); in TEST()
320 EXPECT_EQ("true", Print(true)); in TEST()
325 EXPECT_EQ("L'\\0'", Print(L'\0')); in TEST()
326 EXPECT_EQ("L'\\'' (39, 0x27)", Print(L'\'')); in TEST()
327 EXPECT_EQ("L'\"' (34, 0x22)", Print(L'"')); in TEST()
328 EXPECT_EQ("L'?' (63, 0x3F)", Print(L'?')); in TEST()
329 EXPECT_EQ("L'\\\\' (92, 0x5C)", Print(L'\\')); in TEST()
330 EXPECT_EQ("L'\\a' (7)", Print(L'\a')); in TEST()
331 EXPECT_EQ("L'\\b' (8)", Print(L'\b')); in TEST()
332 EXPECT_EQ("L'\\f' (12, 0xC)", Print(L'\f')); in TEST()
333 EXPECT_EQ("L'\\n' (10, 0xA)", Print(L'\n')); in TEST()
334 EXPECT_EQ("L'\\r' (13, 0xD)", Print(L'\r')); in TEST()
335 EXPECT_EQ("L'\\t' (9)", Print(L'\t')); in TEST()
336 EXPECT_EQ("L'\\v' (11, 0xB)", Print(L'\v')); in TEST()
337 EXPECT_EQ("L'\\x7F' (127)", Print(L'\x7F')); in TEST()
338 EXPECT_EQ("L'\\xFF' (255)", Print(L'\xFF')); in TEST()
339 EXPECT_EQ("L' ' (32, 0x20)", Print(L' ')); in TEST()
340 EXPECT_EQ("L'a' (97, 0x61)", Print(L'a')); in TEST()
341 EXPECT_EQ("L'\\x576' (1398)", Print(static_cast<wchar_t>(0x576))); in TEST()
342 EXPECT_EQ("L'\\xC74D' (51021)", Print(static_cast<wchar_t>(0xC74D))); in TEST()
352 EXPECT_EQ("'\\xFF' (255)", Print(static_cast<unsigned char>(255))); // uint8 in TEST()
353 EXPECT_EQ("'\\x80' (-128)", Print(static_cast<signed char>(-128))); // int8 in TEST()
354 EXPECT_EQ("65535", Print(USHRT_MAX)); // uint16 in TEST()
355 EXPECT_EQ("-32768", Print(SHRT_MIN)); // int16 in TEST()
356 EXPECT_EQ("4294967295", Print(UINT_MAX)); // uint32 in TEST()
357 EXPECT_EQ("-2147483648", Print(INT_MIN)); // int32 in TEST()
359 Print(static_cast<testing::internal::UInt64>(-1))); // uint64 in TEST()
361 Print(static_cast<testing::internal::Int64>(1) << 63)); // int64 in TEST()
366 EXPECT_EQ("1", Print(sizeof('a'))); // size_t. in TEST()
369 EXPECT_EQ("-2", Print(static_cast<ssize_t>(-2))); // ssize_t. in TEST()
375 EXPECT_EQ("1.5", Print(1.5f)); // float in TEST()
376 EXPECT_EQ("-2.5", Print(-2.5)); // double in TEST()
393 EXPECT_EQ(PrintPointer(p) + " pointing to \"World\"", Print(p)); in TEST()
400 Print(static_cast<char*>(p))); in TEST()
406 EXPECT_EQ("NULL", Print(p)); in TEST()
414 Print(p)); in TEST()
430 EXPECT_EQ(PrintPointer(p) + " pointing to L\"World\"", Print(p)); in TEST()
437 Print(static_cast<wchar_t*>(p))); in TEST()
443 EXPECT_EQ("NULL", Print(p)); in TEST()
452 Print(static_cast<const wchar_t*>(s))); in TEST()
461 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
463 EXPECT_EQ("NULL", Print(p)); in TEST()
469 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
471 EXPECT_EQ("NULL", Print(p)); in TEST()
477 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
479 EXPECT_EQ("NULL", Print(p)); in TEST()
485 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
487 EXPECT_EQ("NULL", Print(p)); in TEST()
495 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
497 EXPECT_EQ("NULL", Print(p)); in TEST()
503 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
505 EXPECT_EQ("NULL", Print(p)); in TEST()
511 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
513 EXPECT_EQ("NULL", Print(p)); in TEST()
519 EXPECT_EQ(PrintPointer(p), Print(p)); in TEST()
521 EXPECT_EQ("NULL", Print(p)); in TEST()
536 Print(&MyFunction)); in TEST()
538 EXPECT_EQ("NULL", Print(p)); in TEST()
570 EXPECT_TRUE(HasPrefix(Print(&Foo::value), in TEST()
571 Print(sizeof(&Foo::value)) + "-byte object ")); in TEST()
573 EXPECT_TRUE(HasPrefix(Print(p), in TEST()
574 Print(sizeof(p)) + "-byte object ")); in TEST()
582 EXPECT_TRUE(HasPrefix(Print(&Foo::MyMethod), in TEST()
583 Print(sizeof(&Foo::MyMethod)) + "-byte object ")); in TEST()
585 HasPrefix(Print(&Foo::MyVirtualMethod), in TEST()
586 Print(sizeof((&Foo::MyVirtualMethod))) + "-byte object ")); in TEST()
588 EXPECT_TRUE(HasPrefix(Print(p), in TEST()
589 Print(sizeof(p)) + "-byte object ")); in TEST()
598 return Print(a); in PrintArrayHelper()
669 Print(str)); in TEST()
678 Print(str)); in TEST()
686 EXPECT_EQ("\"0\\x12\" \"3\"", Print(::std::string("0\x12" "3"))); in TEST()
688 EXPECT_EQ("\"mm\\x6\" \"bananas\"", Print(::std::string("mm\x6" "bananas"))); in TEST()
690 EXPECT_EQ("\"NOM\\x6\" \"BANANA\"", Print(::std::string("NOM\x6" "BANANA"))); in TEST()
692 EXPECT_EQ("\"!\\x5-!\"", Print(::std::string("!\x5-!"))); in TEST()
704 Print(str)); in TEST()
715 Print(str)); in TEST()
720 EXPECT_EQ("L\"0\\x12\" L\"3\"", Print(::std::wstring(L"0\x12" L"3"))); in TEST()
722 Print(::std::wstring(L"mm\x6" L"bananas"))); in TEST()
724 Print(::std::wstring(L"NOM\x6" L"BANANA"))); in TEST()
725 EXPECT_EQ("L\"!\\x5-!\"", Print(::std::wstring(L"!\x5-!"))); in TEST()
746 EXPECT_EQ("AllowsGenericStreaming", Print(a)); in TEST()
763 EXPECT_EQ("AllowsGenericStreamingTemplate", Print(a)); in TEST()
784 EXPECT_EQ("AllowsGenericStreamingAndImplicitConversionTemplate", Print(a)); in TEST()
793 EXPECT_EQ("\"Hello\"", Print(sp)); in TEST()
799 EXPECT_EQ("\"NUL (\\0) and \\r\\t\"", Print(sp)); in TEST()
808 EXPECT_EQ("{}", Print(empty)); in TEST()
815 EXPECT_EQ("{ 1, 3 }", Print(non_empty)); in TEST()
823 EXPECT_EQ("{ (1, 'a' (97, 0x61)) }", Print(map1)); in TEST()
832 const string result = Print(map1); in TEST()
845 EXPECT_EQ("{ \"hello\" }", Print(set1)); in TEST()
854 const string result = Print(set1); in TEST()
885 EXPECT_EQ("{ \"hello\", \"world\" }", Print(strings)); in TEST()
893 EXPECT_EQ("{ (1, true), (3, true), (5, false) }", Print(map1)); in TEST()
907 EXPECT_EQ("{ (false, 2), (true, 0), (true, 1) }", Print(map1)); in TEST()
913 EXPECT_EQ("{ 0, 3, 5 }", Print(set1)); in TEST()
919 EXPECT_EQ("{ 1, 1, 1, 2, 5 }", Print(set1)); in TEST()
924 EXPECT_EQ("(true, 5)", Print(p)); in TEST()
931 EXPECT_EQ("{ 1, 2 }", Print(v)); in TEST()
938 "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... }", Print(v)); in TEST()
950 EXPECT_EQ("{ { 1, 2 }, { 3, 4, 5 } }", Print(v)); in TEST()
956 EXPECT_EQ("{ 1, 2, 3 }", Print(b)); in TEST()
962 EXPECT_EQ("{ { 1, 2, 3 }, { 4, 5, 6 } }", Print(b)); in TEST()
973 EXPECT_EQ("1-byte object <00>", Print(it)); in TEST()
984 EXPECT_EQ("1-byte object <00>", Print(it)); in TEST()
993 EXPECT_EQ("()", Print(t0)); in TEST()
996 EXPECT_EQ("(5)", Print(t1)); in TEST()
999 EXPECT_EQ("('a' (97, 0x61), true)", Print(t2)); in TEST()
1002 EXPECT_EQ("(false, 2, 3)", Print(t3)); in TEST()
1005 EXPECT_EQ("(false, 2, 3, 4)", Print(t4)); in TEST()
1008 EXPECT_EQ("(false, 2, 3, 4, true)", Print(t5)); in TEST()
1011 EXPECT_EQ("(false, 2, 3, 4, true, 6)", Print(t6)); in TEST()
1014 EXPECT_EQ("(false, 2, 3, 4, true, 6, 7)", Print(t7)); in TEST()
1018 EXPECT_EQ("(false, 2, 3, 4, true, 6, 7, true)", Print(t8)); in TEST()
1022 EXPECT_EQ("(false, 2, 3, 4, true, 6, 7, true, 9)", Print(t9)); in TEST()
1033 Print(t10)); in TEST()
1039 EXPECT_EQ("((5, true), 'a' (97, 0x61))", Print(nested)); in TEST()
1049 Print(UnprintableTemplateInGlobal<char>())); in TEST()
1055 Print(::foo::UnprintableInFoo())); in TEST()
1073 Print(Big())); in TEST()
1081 EXPECT_EQ("StreamableInGlobal", Print(x)); in TEST()
1082 EXPECT_EQ("StreamableInGlobal*", Print(&x)); in TEST()
1088 Print(::foo::StreamableTemplateInFoo<int>())); in TEST()
1094 Print(::foo::PrintableViaPrintTo())); in TEST()
1101 EXPECT_EQ("PointerPrintable*", Print(&x)); in TEST()
1107 Print(::foo::PrintableViaPrintToTemplate<int>(5))); in TEST()
1116 EXPECT_EQ("<member:\"yes\">", Print(msg)); in TEST()
1124 EXPECT_PRED2(RE::FullMatch, Print(msg), in TEST()
1136 EXPECT_PRED2(RE::FullMatch, Print(msg), in TEST()
1190 Print(sizeof(p)) + "-byte object ")); in TEST()
1196 Print(sizeof(p2)) + "-byte object ")); in TEST()
1205 "@" + PrintPointer(&p) + " " + Print(sizeof(p)) + "-byte object ")); in TEST()