()
| 140 | ` |
| 141 | |
| 142 | const clientEndpointFixture = () => `// Compares HttpApiClient.endpoint selection from 500 same-shaped endpoints. |
| 143 | ${imports({ client: true, effect: true, httpClient: true })} |
| 144 | |
| 145 | ${warmup} |
| 146 | |
| 147 | ${schemas} |
| 148 | |
| 149 | ${api(500)} |
| 150 | |
| 151 | declare const httpClient: HttpClient.HttpClient |
| 152 | |
| 153 | const endpointClient = HttpApiClient.endpoint(api, { |
| 154 | group: "users", |
| 155 | endpoint: "getUser0500", |
| 156 | httpClient |
| 157 | }) |
| 158 | |
| 159 | type Method = Effect.Success<typeof endpointClient> |
| 160 | |
| 161 | ${assertions} |
| 162 | |
| 163 | export type MethodExists = Assert<IsNever<Method> extends false ? true : false> |
| 164 | export type EndpointClientRequest = Parameters<Method>[0] |
| 165 | export type EndpointClientResult = ReturnType<Method> |
| 166 | ` |
| 167 | |
| 168 | const urlBuilderFixture = (topLevel) => `// Compares ${topLevel ? "top-level" : "grouped"} URL builder derivation from 500 same-shaped endpoints. |
| 169 | ${imports({ client: true })} |
no test coverage detected