47 PrimeTable* CreatePrimeTable<OnTheFlyPrimeTable>() {
52 PrimeTable* CreatePrimeTable<PreCalculatedPrimeTable>() {
62 PrimeTableTest() : table_(CreatePrimeTable<
T>()) {}
64 ~PrimeTableTest()
override {
delete table_; }
76 #if GTEST_HAS_TYPED_TEST
93 typedef Types<OnTheFlyPrimeTable, PreCalculatedPrimeTable> Implementations;
99 TYPED_TEST(PrimeTableTest, ReturnsFalseForNonPrimes) {
115 TYPED_TEST(PrimeTableTest, ReturnsTrueForPrimes) {
125 EXPECT_EQ(2, this->table_->GetNextPrime(0));
126 EXPECT_EQ(3, this->table_->GetNextPrime(2));
127 EXPECT_EQ(5, this->table_->GetNextPrime(3));
128 EXPECT_EQ(7, this->table_->GetNextPrime(5));
129 EXPECT_EQ(11, this->table_->GetNextPrime(7));
130 EXPECT_EQ(131, this->table_->GetNextPrime(128));
137 #endif // GTEST_HAS_TYPED_TEST
139 #if GTEST_HAS_TYPED_TEST_P
160 class PrimeTableTest2 :
public PrimeTableTest<T> {
170 TYPED_TEST_P(PrimeTableTest2, ReturnsFalseForNonPrimes) {
189 EXPECT_EQ(2, this->table_->GetNextPrime(0));
190 EXPECT_EQ(3, this->table_->GetNextPrime(2));
191 EXPECT_EQ(5, this->table_->GetNextPrime(3));
192 EXPECT_EQ(7, this->table_->GetNextPrime(5));
193 EXPECT_EQ(11, this->table_->GetNextPrime(7));
194 EXPECT_EQ(131, this->table_->GetNextPrime(128));
202 ReturnsFalseForNonPrimes, ReturnsTrueForPrimes, CanGetNextPrime);
217 typedef Types<OnTheFlyPrimeTable, PreCalculatedPrimeTable>
218 PrimeTableImplementations;
221 PrimeTableImplementations);
223 #endif // GTEST_HAS_TYPED_TEST_P
REGISTER_TYPED_TEST_SUITE_P(FadBLASUnitTests, testSCAL1, testSCAL2, testSCAL3, testSCAL4, testCOPY1, testCOPY2, testCOPY3, testCOPY4, testAXPY1, testAXPY2, testAXPY3, testAXPY4, testDOT1, testDOT2, testDOT3, testDOT4, testNRM21, testNRM22, testGEMV1, testGEMV2, testGEMV3, testGEMV4, testGEMV5, testGEMV6, testGEMV7, testGEMV8, testGEMV9, testTRMV1, testTRMV2, testTRMV3, testTRMV4, testGER1, testGER2, testGER3, testGER4, testGER5, testGER6, testGER7, testGEMM1, testGEMM2, testGEMM3, testGEMM4, testGEMM5, testGEMM6, testGEMM7, testGEMM8, testGEMM9, testGEMM10, testSYMM1, testSYMM2, testSYMM3, testSYMM4, testSYMM5, testSYMM6, testSYMM7, testSYMM8, testSYMM9, testTRMM1, testTRMM2, testTRMM3, testTRMM4, testTRMM5, testTRMM6, testTRMM7, testTRSM1, testTRSM2, testTRSM3, testTRSM4, testTRSM5, testTRSM6, testTRSM7)
TYPED_TEST_P(FadBLASUnitTests, testSCAL1)
internal::ProxyTypeList< Ts...> Types
TYPED_TEST_SUITE(TypedTest, MyTypes)
TYPED_TEST(FunctionMockerTest, MocksVoidFunction)
TYPED_TEST_SUITE_P(FadBLASUnitTests)
#define EXPECT_EQ(val1, val2)
INSTANTIATE_TYPED_TEST_SUITE_P(CacheFad, FadOpsUnitTest, FadTypes)
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)