(count, raw = false)
| 218 | }))` |
| 219 | |
| 220 | const handlersFixture = (count, raw = false) => `// Compares chained builder ${raw ? "handleRaw" : "handle"} registration for ${count} same-shaped endpoints. |
| 221 | ${imports({ builder: true, effect: true })} |
| 222 | |
| 223 | ${warmup} |
| 224 | |
| 225 | ${schemas} |
| 226 | |
| 227 | const group = HttpApiGroup.make("users").add( |
| 228 | ${endpoints(count, " ")} |
| 229 | ) |
| 230 | |
| 231 | const api = HttpApi.make("Api").add(group) |
| 232 | |
| 233 | const layer = HttpApiBuilder.group(api, "users", (handlers) => |
| 234 | handlers |
| 235 | ${Array.from({ length: count }, (_, index) => handlerCall(index + 1, raw)).join("\n")} |
| 236 | ) |
| 237 | |
| 238 | ${assertions} |
| 239 | |
| 240 | export type LayerExists = Assert<IsNever<typeof layer> extends false ? true : false> |
| 241 | export type Layer = typeof layer |
| 242 | ` |
| 243 | |
| 244 | export const httpapi = { |
| 245 | name: "httpapi", |
no test coverage detected