// Route: GET / (index, template inheritance, coverage matrix)
#include "support/Assert.hpp"
using namespace molo::example::test;
int main() {
Fixture f;
auto res = f.client->get("/");
check(res.status == 200, "status 200");
check(contains(res.headers.get("Content-Type"), "text/html"),
"html content type");
check(contains(res.body, "Living example"), "matrix heading");
check(contains(res.body, "/routing/hello/world"), "matrix links a route");
check(contains(res.body, "viewport"), "responsive viewport meta");
check(contains(res.body, "nav-narrow"), "narrow nav dropdown present");
check(contains(res.body, "id=\"g-routing\""), "routing group section");
check(contains(res.body, "id=\"g-vendors\""), "vendor group section");
check(contains(res.body, "needs API key"), "key badge on credentialed groups");
check(contains(res.body, "id=\"filter\""), "filter box");
check(contains(res.body, "Routing"),
"row shows a readable name linking the route");
check(contains(res.body, "AI OpenAI"), "acronyms prettified");
check(!contains(res.body, "g-other"), "every registered route is grouped");
check(res.headers.has("X-Request-ID"), "request id middleware ran");
return finish("index");
}