Commit 53289cb
gnd: Add codegen verification tests against graph-cli fixtures
Add integration tests that verify gnd codegen produces compatible output
to graph-cli codegen using golden test fixtures from the graph-cli repo.
Changes:
- Add walkdir and similar dev-dependencies for test infrastructure
- Create codegen_verification.rs with tests for 8 fixtures
- Fix ABI preprocessing to use correct default param names
- Fix typescript class method ordering to match graph-cli output
Known differences that are normalized in tests:
- Int8 import (gnd always includes it)
- Trailing commas (gnd uses them)
- 2D array accessors (gnd correctly uses toStringMatrix)
Skipped fixtures with documented reasons:
- derived-from-with-interface: derived field loaders not implemented
- invalid-graphql-schema: gnd generates schema.ts for invalid schemas
- no-network-names: template ABI types not in subdirectories
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c60b8e3 commit 53289cb
File tree
5 files changed
+444
-8
lines changed- gnd
- src
- codegen
- commands
- tests
5 files changed
+444
-8
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
| 345 | + | |
341 | 346 | | |
342 | 347 | | |
343 | 348 | | |
| |||
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
| 366 | + | |
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
| 371 | + | |
365 | 372 | | |
366 | 373 | | |
367 | 374 | | |
| |||
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
391 | 395 | | |
392 | 396 | | |
393 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
231 | 303 | | |
232 | 304 | | |
233 | 305 | | |
234 | 306 | | |
235 | 307 | | |
236 | 308 | | |
237 | 309 | | |
238 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
239 | 315 | | |
240 | 316 | | |
241 | 317 | | |
| |||
0 commit comments