MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / LoadFixtureOrThrow

Function LoadFixtureOrThrow

tests/cpp/support/fixture_loader.h:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32inline 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

Callers

nothing calls this directly

Calls 1

FixturePathFunction · 0.85

Tested by

no test coverage detected