| 40 | namespace { |
| 41 | |
| 42 | TEST(PRNGSeed, Nominal) { |
| 43 | EXPECT_TRUE(PRNG == nullptr); |
| 44 | SetPRNGSeed(); |
| 45 | EXPECT_TRUE(PRNG != nullptr); |
| 46 | SetPRNGSeed(0); |
| 47 | EXPECT_TRUE(PRNG != nullptr); |
| 48 | std::thread thread([]() { |
| 49 | // Each thread defines their own PRNG instance. |
| 50 | EXPECT_TRUE(PRNG == nullptr); |
| 51 | SetPRNGSeed(); |
| 52 | EXPECT_TRUE(PRNG != nullptr); |
| 53 | SetPRNGSeed(0); |
| 54 | EXPECT_TRUE(PRNG != nullptr); |
| 55 | }); |
| 56 | thread.join(); |
| 57 | } |
| 58 | |
| 59 | TEST(Repeatability, Nominal) { |
| 60 | constexpr size_t kNumPoints = 100; |
nothing calls this directly
no test coverage detected