srctree

Gregory Mullen parent 836382ee a26302ea
alias live in another castle

I think this reintroduces a bug with deep routing stacks, but I don't have a clear test case yet, where I do have working code in srctree now
src/endpoint.zig added: 3, removed: 6, total 0
@@ -122,10 +122,6 @@ fn routeCount(endpoints: anytype) usize {
}
return count + endpoints.len - 1 + alias_count;
}
 
if (@hasDecl(ep, "verse_alias")) {
count += ep.verse_alias.len;
}
}
return count;
}
@@ -201,8 +197,9 @@ test routeCount {
);
// TODO test verse_router doesn't include verse_endpoints
try std.testing.expectEqual(
2,
1,
routeCount(.{
// TODO expand this test in include a root struct
struct {
const verse_name = .testing;
const verse_alias = .{