Lines Matching refs:Perform
172 EXPECT_EQ(1, a.Perform(make_tuple(2, &Nullary)));
178 EXPECT_EQ(1, a.Perform(make_tuple(UnaryFunctor())));
185 EXPECT_EQ(12345, a.Perform(make_tuple(&SumOf5)));
192 EXPECT_EQ(12345, a.Perform(make_tuple(SumOf5Functor())));
199 EXPECT_EQ(123456, a.Perform(make_tuple(&SumOf6)));
206 EXPECT_EQ(123456, a.Perform(make_tuple(SumOf6Functor())));
215 EXPECT_EQ("1234567", a.Perform(make_tuple(&Concat7)));
224 EXPECT_EQ("12345678", a.Perform(make_tuple(&Concat8)));
233 EXPECT_EQ("123456789", a.Perform(make_tuple(&Concat9)));
243 EXPECT_EQ("1234567890", a.Perform(make_tuple(&Concat10)));
250 EXPECT_STREQ("i", a.Perform(make_tuple(&Binary)));
258 EXPECT_STREQ("i", a.Perform(make_tuple(&Binary)));
268 EXPECT_TRUE(a.Perform(make_tuple(&ByConstRef)));
277 EXPECT_TRUE(a.Perform(make_tuple(&ReferencesGlobalDouble)));
281 EXPECT_FALSE(a.Perform(make_tuple(&ReferencesGlobalDouble)));
287 EXPECT_TRUE(a.Perform(make_tuple(1.5, -1)));
288 EXPECT_FALSE(a.Perform(make_tuple(1.5, 1)));
296 EXPECT_EQ(s + 2, a.Perform(make_tuple(CharPtr(s), 0.5, Short(2))));
303 EXPECT_EQ(123, a.Perform(make_tuple(100, 6.5, Char(20), Short(3))));
310 EXPECT_EQ("4310", a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), 2.5,
320 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"),
329 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"))));
337 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"),
346 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"),
355 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"),
364 a.Perform(make_tuple(CharPtr("0"), CharPtr("1"), CharPtr("2"),
371 virtual int Perform(const tuple<int, int>& args) {
379 EXPECT_EQ(8, a.Perform(make_tuple(string("hi"), 2, 10)));
386 EXPECT_EQ(123, a.Perform(make_tuple(100, Char(20), Short(3))));
393 EXPECT_EQ(4, a.Perform(make_tuple(false, 1, 10)));
401 EXPECT_EQ(s + 2, a.Perform(make_tuple(Short(2), CharPtr(s))));
408 EXPECT_EQ(123, a.Perform(make_tuple(Short(100), Char(20), 5.6, Char(3))));
415 a.Perform(make_tuple(1.5, 'a', 3));
424 EXPECT_EQ(2, a.Perform(make_tuple(&n)));
434 EXPECT_EQ(3, a.Perform(make_tuple(&m, &n)));
448 EXPECT_EQ(3, a.Perform(make_tuple(&m, &n, &ch)));
464 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b)));
482 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c)));
502 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d)));
525 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e)));
550 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e, &f)));
578 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e, &f, &g)));
608 EXPECT_DOUBLE_EQ(5, a1.Perform(make_tuple()));
611 EXPECT_EQ(5, a2.Perform(make_tuple(1, true)));
620 a1.Perform(make_tuple(5, &n));
635 a1.Perform(make_tuple(5, false, &n));
650 EXPECT_EQ(11, a1.Perform(make_tuple(5, Char(6), &dummy)));
665 EXPECT_EQ(1, a1.Perform(make_tuple(true)));
666 EXPECT_EQ(1, a1.Perform(make_tuple(false)));
679 EXPECT_EQ(1, a1.Perform(make_tuple(true)));
680 EXPECT_EQ(1, a1.Perform(make_tuple(false)));
692 EXPECT_EQ(&b, a.Perform(tuple<int, const bool&>(0, b)));
704 EXPECT_EQ(&n, a.Perform(tuple<int&, bool, int>(n, true, 1)));
714 EXPECT_EQ(3, a1.Perform(make_tuple(1, 2)));
723 EXPECT_EQ(4, a1.Perform(make_tuple(2)));
727 EXPECT_DOUBLE_EQ(6, a2.Perform(make_tuple(4.0f, &dummy)));
735 EXPECT_EQ(10, a1.Perform(make_tuple(1, true)));
748 EXPECT_EQ(10, a1.Perform(make_tuple(Char(1), true)));
756 EXPECT_EQ("retail", a1.Perform(make_tuple(re)));
776 EXPECT_STREQ("hello", a1.Perform(make_tuple(false, CharPtr("world"))));
777 EXPECT_STREQ("world", a1.Perform(make_tuple(true, CharPtr("world"))));
780 EXPECT_STREQ("hi", a2.Perform(make_tuple(false, CharPtr("world"))));
781 EXPECT_STREQ("world", a2.Perform(make_tuple(true, CharPtr("world"))));
784 EXPECT_STREQ("hi", a3.Perform(make_tuple(true, CharPtr("world"))));
785 EXPECT_STREQ("you", a3.Perform(make_tuple(false, CharPtr("world"))));
794 EXPECT_DOUBLE_EQ(3123.4, a1.Perform(make_tuple(3000, true)));
798 EXPECT_EQ("retail->", a2.Perform(make_tuple(re)));
805 EXPECT_EQ(10 + 1 + 2 + 3 + 4, a1.Perform(make_tuple(10)));
812 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5, a1.Perform(make_tuple(10)));
821 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6, a1.Perform(make_tuple(10)));
830 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7, a1.Perform(make_tuple(10)));
839 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8, a1.Perform(make_tuple(10)));
848 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9, a1.Perform(make_tuple(10)));
860 a1.Perform(make_tuple(10)));
877 EXPECT_EQ("foobar", no_promo.Perform(make_tuple(CharPtr("ba"))));
878 EXPECT_EQ("foobar", promo.Perform(make_tuple(CharPtr("ba"))));
925 EXPECT_EQ("Hello12", a1.Perform(make_tuple()));
928 EXPECT_EQ("123", a1.Perform(make_tuple()));
989 EXPECT_EQ(1, a.Perform(empty));
992 EXPECT_EQ(3, a.Perform(empty));
995 EXPECT_EQ(6, a.Perform(empty));
1001 EXPECT_EQ(55, a.Perform(empty));
1013 NullaryConstructorClass* c = a.Perform(make_tuple());
1027 UnaryConstructorClass* c = a.Perform(make_tuple());
1035 UnaryConstructorClass* c = a.Perform(make_tuple(false, 5));
1043 const UnaryConstructorClass* c = a.Perform(make_tuple());
1063 TenArgConstructorClass* c = a.Perform(make_tuple());
1077 int* p = a.Perform(make_tuple());
1090 int* p = a.Perform(make_tuple());
1116 a.Perform(make_tuple(&n, resetter));
1131 linked_ptr<int> p = a.Perform(make_tuple());
1166 Giant giant = a.Perform(make_tuple());
1179 EXPECT_EQ(55, a.Perform(make_tuple()));
1213 EXPECT_EQ(0, a0.Perform(make_tuple()));
1214 EXPECT_EQ(1, a1.Perform(make_tuple()));
1215 EXPECT_EQ(3, a2.Perform(make_tuple()));
1216 EXPECT_EQ(6, a3.Perform(make_tuple()));
1217 EXPECT_EQ(12345, a4.Perform(make_tuple()));