Home
last modified time | relevance | path

Searched refs:TypeParam (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/googletest/googletest/test/
H A Dgtest-typed-test_test.cc122 EXPECT_EQ(static_cast<TypeParam>(2), this->value_); in TYPED_TEST()
157 TYPED_TEST(NumericTest, DefaultIsZero) { EXPECT_EQ(0, TypeParam()); } in TYPED_TEST()
181 if (std::is_same<TypeParam, char>::value) { in TYPED_TEST()
187 if (std::is_same<TypeParam, int>::value) { in TYPED_TEST()
297 if (std::is_same<TypeParam, char>::value) { in TYPED_TEST_P()
303 if (std::is_same<TypeParam, int>::value) { in TYPED_TEST_P()
391 TYPED_TEST_P(NumericTest, DefaultIsZero) { EXPECT_EQ(0, TypeParam()); } in TYPED_TEST_P()
394 EXPECT_LT(TypeParam(0), TypeParam(1)); in TYPED_TEST_P()
H A Dgoogletest-port-test.cc415 const RE empty(TypeParam("")); in TYPED_TEST()
418 const RE simple(TypeParam("hello")); in TYPED_TEST()
421 const RE normal(TypeParam(".*(\\w+)")); in TYPED_TEST()
428 { const RE invalid(TypeParam("?")); }, in TYPED_TEST()
434 const RE empty(TypeParam("")); in TYPED_TEST()
435 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty)); in TYPED_TEST()
436 EXPECT_FALSE(RE::FullMatch(TypeParam("a"), empty)); in TYPED_TEST()
438 const RE re(TypeParam("a.*z")); in TYPED_TEST()
439 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re)); in TYPED_TEST()
440 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re)); in TYPED_TEST()
[all …]
H A Dgoogletest-output-test-golden-lin.txt22 [----------] 1 test from ATypedDeathTest/0, where TypeParam = int
25 [----------] 1 test from ATypedDeathTest/1, where TypeParam = double
28 [----------] 1 test from My/ATypeParamDeathTest/0, where TypeParam = int
31 [----------] 1 test from My/ATypeParamDeathTest/1, where TypeParam = double
604 [----------] 2 tests from TypedTest/0, where TypeParam = int
611 TypeParam()
616 [ FAILED ] TypedTest/0.Failure, where TypeParam = int
617 [----------] 2 tests from TypedTestWithNames/char0, where TypeParam = char
625 [ FAILED ] TypedTestWithNames/char0.Failure, where TypeParam = char
626 [----------] 2 tests from TypedTestWithNames/int1, where TypeParam = int
[all …]
H A Dgtest-typed-test_test.h47 TYPED_TEST_P(ContainerTest, CanBeDefaultConstructed) { TypeParam container; } in TYPED_TEST_P()
50 TypeParam container; in TYPED_TEST_P()
H A Dgoogletest-output-test_.cc704 TYPED_TEST(TypedTest, Success) { EXPECT_EQ(0, TypeParam()); } in TYPED_TEST()
707 EXPECT_EQ(1, TypeParam()) << "Expected failure"; in TYPED_TEST()
737 TYPED_TEST_P(TypedTestP, Success) { EXPECT_EQ(0U, TypeParam()); } in TYPED_TEST_P()
740 EXPECT_EQ(1U, TypeParam()) << "Expected failure"; in TYPED_TEST_P()
768 TypeParam instantiate; in TYPED_TEST_P()
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-function-mocker_test.cc518 { TypeParam b; } in TYPED_TEST()
521 TypeParam b; in TYPED_TEST()
526 TypeParam b; in TYPED_TEST()
593 TypeParam mock; in TYPED_TEST()
613 TypeParam mock; in TYPED_TEST()
682 TypeParam mock; in TYPED_TEST()
745 TypeParam mock; in TYPED_TEST()
868 using Argument = TypeParam; in TYPED_TEST()
870 EXPECT_TRUE(IsMockFunctionTemplateArgumentDeducedTo<TypeParam>(foo)); in TYPED_TEST()
875 using Argument = std::function<TypeParam>; in TYPED_TEST()
[all …]
H A Dgmock-matchers-misc_test.cc226 TypeParam my_set(vals, vals + 6); in TYPED_TEST()
227 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
236 TypeParam my_set(vals, vals + 6); in TYPED_TEST()
237 TypeParam test_set(test_vals, test_vals + 4); in TYPED_TEST()
238 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
248 TypeParam my_set(vals, vals + 6); in TYPED_TEST()
249 TypeParam test_set(test_vals, test_vals + 6); in TYPED_TEST()
250 const Matcher<const TypeParam&> m = ContainerEq(my_set); in TYPED_TEST()
259 TypeParam my_set(vals, vals + 6); in TYPED_TEST()
260 TypeParam test_set(test_vals, test_vals + 5); in TYPED_TEST()
[all …]
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-typed-test.h72 TypeParam n = this->value_;
139 TypeParam n = 0;
205 typedef gtest_TypeParam_ TypeParam; \
277 typedef gtest_TypeParam_ TypeParam; \
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp433 auto *TypeParam = TemplateTypeParmDecl::Create( in defineHLSLVectorAlias() local
436 TypeParam->setDefaultArgument( in defineHLSLVectorAlias()
440 TemplateParams.emplace_back(TypeParam); in defineHLSLVectorAlias()
461 AST.getTemplateTypeParmType(0, 0, false, TypeParam), in defineHLSLVectorAlias()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVReader.h119 LV_OBJECT_ALLOCATOR(TypeParam)
225 LV_CREATE_OBJECT(TypeParam) in LV_CREATE_OBJECT()
/freebsd/contrib/googletest/docs/reference/
H A Dtesting.md204 Within the test body, the special name `TypeParam` refers to the type parameter,
209 // Inside a test, refer to the special name TypeParam to get the type
212 TypeParam n = this->value_;
255 Within the test body, the special name `TypeParam` refers to the type parameter,
/freebsd/contrib/googletest/docs/
H A Dfaq.md107 you can write `new TypeParam`), or if their factory functions have the same
108 form (e.g. `CreateInstance<TypeParam>()`).
H A Dadvanced.md1319 // Inside a test, refer to the special name TypeParam to get the type
1322 TypeParam n = this->value_;
1378 // Inside a test, refer to TypeParam to get the type parameter.
1379 TypeParam n = 0;
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp3523 Type *TypeParam; in parseTargetExtType() local
3524 if (parseType(TypeParam, /*AllowVoid=*/true)) in parseTargetExtType()
3526 TypeParams.push_back(TypeParam); in parseTargetExtType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp5856 if (ObjCTypeParamType *TypeParam = in getObjCTypeParamType() local
5858 return QualType(TypeParam, 0); in getObjCTypeParamType()