| 30 | } |
| 31 | |
| 32 | inline std::string LoadFixtureOrThrow(const std::string& relative) { |
| 33 | std::ifstream file(FixturePath(relative)); |
| 34 | if (!file.is_open()) { |
| 35 | throw std::runtime_error("Fixture not found: " + FixturePath(relative)); |
| 36 | } |
| 37 | std::stringstream ss; |
| 38 | ss << file.rdbuf(); |
| 39 | return ss.str(); |
| 40 | } |
| 41 | |
| 42 | } // namespace testing |
| 43 | } // namespace agenui |
nothing calls this directly
no test coverage detected