smithy-lang / smithy-rs

Code generation for the AWS SDK for Rust, as well as server and generic smithy client generation.
Apache License 2.0
467 stars 183 forks source link

Refactor and DRY up protocol test generation #3713

Closed david-perez closed 4 days ago

david-perez commented 1 week ago

Protocol test generation code was one of the earlier parts of smithy-rs's codebase and it has accrued a fair amount of tech debt as we have evolved the code generation primitives. Its code was also forked when the server code generator was introduced, introducing a lot of duplicated code that has deviated over time.

This commit refactors the code to modern standards and aims to reconcile commonalities in ProtocolTestGenerator, so that both client and server can reap centralized improvements over time.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

github-actions[bot] commented 1 week ago

A new generated diff is ready to view.

A new doc preview is ready to view.

github-actions[bot] commented 1 week ago

A new generated diff is ready to view.

A new doc preview is ready to view.