Home | History | Annotate | Download | only in test

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)));
242 EXPECT_EQ("1234567890", a.Perform(make_tuple(&Concat10)));
249 EXPECT_STREQ("i", a.Perform(make_tuple(&Binary)));
257 EXPECT_STREQ("i", a.Perform(make_tuple(&Binary)));
267 EXPECT_TRUE(a.Perform(make_tuple(&ByConstRef)));
276 EXPECT_TRUE(a.Perform(make_tuple(&ReferencesGlobalDouble)));
280 EXPECT_FALSE(a.Perform(make_tuple(&ReferencesGlobalDouble)));
286 EXPECT_TRUE(a.Perform(make_tuple(1.5, -1)));
287 EXPECT_FALSE(a.Perform(make_tuple(1.5, 1)));
295 EXPECT_EQ(s + 2, a.Perform(make_tuple(CharPtr(s), 0.5, Short(2))));
302 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) {
380 EXPECT_EQ(8, a.Perform(tuple<const string&, int, int>(s, 2, 10)));
387 EXPECT_EQ(123, a.Perform(make_tuple(100, Char(20), Short(3))));
394 EXPECT_EQ(4, a.Perform(make_tuple(false, 1, 10)));
402 EXPECT_EQ(s + 2, a.Perform(make_tuple(Short(2), CharPtr(s))));
409 EXPECT_EQ(123, a.Perform(make_tuple(Short(100), Char(20), 5.6, Char(3))));
416 a.Perform(make_tuple(1.5, 'a', 3));
425 EXPECT_EQ(2, a.Perform(make_tuple(&n)));
435 EXPECT_EQ(3, a.Perform(make_tuple(&m, &n)));
449 EXPECT_EQ(3, a.Perform(make_tuple(&m, &n, &ch)));
465 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b)));
483 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c)));
503 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d)));
526 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e)));
551 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e, &f)));
579 EXPECT_EQ(3, action.Perform(make_tuple(&m, &n, &a, &b, &c, &d, &e, &f, &g)));
609 EXPECT_DOUBLE_EQ(5, a1.Perform(make_tuple()));
612 EXPECT_EQ(5, a2.Perform(make_tuple(1, true)));
621 a1.Perform(make_tuple(5, &n));
636 a1.Perform(make_tuple(5, false, &n));
651 EXPECT_EQ(11, a1.Perform(make_tuple(5, Char(6), &dummy)));
666 EXPECT_EQ(1, a1.Perform(make_tuple(true)));
667 EXPECT_EQ(1, a1.Perform(make_tuple(false)));
680 EXPECT_EQ(1, a1.Perform(make_tuple(true)));
681 EXPECT_EQ(1, a1.Perform(make_tuple(false)));
693 EXPECT_EQ(&b, a.Perform(tuple<int, const bool&>(0, b)));
705 EXPECT_EQ(&n, a.Perform(tuple<int&, bool, int>(n, true, 1)));
715 EXPECT_EQ(3, a1.Perform(make_tuple(1, 2)));
724 EXPECT_EQ(4, a1.Perform(make_tuple(2)));
728 EXPECT_DOUBLE_EQ(6, a2.Perform(make_tuple(4.0f, &dummy)));
736 EXPECT_EQ(10, a1.Perform(make_tuple(1, true)));
749 EXPECT_EQ(10, a1.Perform(make_tuple(Char(1), true)));
757 EXPECT_EQ("retail", a1.Perform(tuple<const std::string&>(re)));
777 EXPECT_STREQ("hello", a1.Perform(make_tuple(false, CharPtr("world"))));
778 EXPECT_STREQ("world", a1.Perform(make_tuple(true, CharPtr("world"))));
781 EXPECT_STREQ("hi", a2.Perform(make_tuple(false, CharPtr("world"))));
782 EXPECT_STREQ("world", a2.Perform(make_tuple(true, CharPtr("world"))));
785 EXPECT_STREQ("hi", a3.Perform(make_tuple(true, CharPtr("world"))));
786 EXPECT_STREQ("you", a3.Perform(make_tuple(false, CharPtr("world"))));
795 EXPECT_DOUBLE_EQ(3123.4, a1.Perform(make_tuple(3000, true)));
799 EXPECT_EQ("retail->", a2.Perform(tuple<const std::string&>(re)));
806 EXPECT_EQ(10 + 1 + 2 + 3 + 4, a1.Perform(make_tuple(10)));
813 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5, a1.Perform(make_tuple(10)));
822 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6, a1.Perform(make_tuple(10)));
831 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7, a1.Perform(make_tuple(10)));
840 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8, a1.Perform(make_tuple(10)));
849 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9, a1.Perform(make_tuple(10)));
861 a1.Perform(make_tuple(10)));
878 EXPECT_EQ("foobar", no_promo.Perform(make_tuple(CharPtr("ba"))));
879 EXPECT_EQ("foobar", promo.Perform(make_tuple(CharPtr("ba"))));
928 EXPECT_EQ("Hello12", a1.Perform(make_tuple()));
931 EXPECT_EQ("123", a1.Perform(make_tuple()));
992 EXPECT_EQ(1, a.Perform(empty));
995 EXPECT_EQ(3, a.Perform(empty));
998 EXPECT_EQ(6, a.Perform(empty));
1004 EXPECT_EQ(55, a.Perform(empty));
1016 NullaryConstructorClass* c = a.Perform(make_tuple());
1030 UnaryConstructorClass* c = a.Perform(make_tuple());
1038 UnaryConstructorClass* c = a.Perform(make_tuple(false, 5));
1046 const UnaryConstructorClass* c = a.Perform(make_tuple());
1066 TenArgConstructorClass* c = a.Perform(make_tuple());
1080 int* p = a.Perform(make_tuple());
1093 int* p = a.Perform(make_tuple());
1119 a.Perform(make_tuple(&n, resetter));
1134 linked_ptr<int> p = a.Perform(make_tuple());
1169 Giant giant = a.Perform(make_tuple());
1182 EXPECT_EQ(55, a.Perform(make_tuple()));
1216 EXPECT_EQ(0, a0.Perform(make_tuple()));
1217 EXPECT_EQ(1, a1.Perform(make_tuple()));
1218 EXPECT_EQ(3, a2.Perform(make_tuple()));
1219 EXPECT_EQ(6, a3.Perform(make_tuple()));
1220 EXPECT_EQ(12345, a4.Perform(make_tuple()));