| 63 | }; |
| 64 | |
| 65 | TEST_F(HloModuleTest, OneComputationPostOrder) { |
| 66 | // Create a module with a single computation. |
| 67 | auto module = CreateNewVerifiedModule(); |
| 68 | auto computation = module->AddEntryComputation(CreateConstantComputation()); |
| 69 | |
| 70 | EXPECT_THAT(module->MakeComputationPostOrder(), |
| 71 | ::testing::ElementsAre(computation)); |
| 72 | } |
| 73 | |
| 74 | TEST_F(HloModuleTest, TwoComputationsPostOrder) { |
| 75 | // Create a module with two unconnected computations. |
nothing calls this directly
no test coverage detected