Trivial test that runs the generated function to ensure it doesn't crash.
| 59 | |
| 60 | // Trivial test that runs the generated function to ensure it doesn't crash. |
| 61 | TEST(TEST_NAME, NoCrash) { |
| 62 | Eigen::ThreadPool pool(port::MaxParallelism()); |
| 63 | Eigen::ThreadPoolDevice device(&pool, pool.NumThreads()); |
| 64 | |
| 65 | CPP_CLASS computation; |
| 66 | computation.set_thread_pool(&device); |
| 67 | zero_buffers(&computation); |
| 68 | |
| 69 | EXPECT_TRUE(computation.Run()); |
| 70 | } |
| 71 | |
| 72 | // Simple benchmark that repeatedly runs the generated function. |
| 73 | void BM_NAME(int iters) { |
nothing calls this directly
no test coverage detected