| 257 | } |
| 258 | |
| 259 | ::testing::AssertionResult HloTestBase::RunAndCompare( |
| 260 | std::unique_ptr<HloModule> module, |
| 261 | const absl::Span<Literal* const> arguments, |
| 262 | const optional<ErrorSpec>& error, |
| 263 | const std::function<void(HloModule*)>& reference_preprocessor) { |
| 264 | auto result = |
| 265 | RunAndCompareInternal(std::move(module), arguments, error, |
| 266 | /*run_hlo_passes=*/true, reference_preprocessor); |
| 267 | if (!result.ok()) { |
| 268 | return ::testing::AssertionFailure() << result.status(); |
| 269 | } |
| 270 | return result.ValueOrDie(); |
| 271 | } |
| 272 | |
| 273 | ::testing::AssertionResult HloTestBase::RunAndCompareNoHloPasses( |
| 274 | std::unique_ptr<HloModule> module, |
nothing calls this directly
no test coverage detected