smithy-lang / smithy-dafny

Apache License 2.0
7 stars 8 forks source link

Add TestModel for alternate constructors (AltConstructor) #374

Open robin-aws opened 1 month ago

robin-aws commented 1 month ago

Extend the Constructor TestModel to validate that a language's code generator generates a constructor for a client that accepts a Dafny client implementation, rather than a native config shape.

Context: Right now, this TestModel only validates that an operation on the client can return values passed into the constructor. But in some cases (notably wrapping/unwrapping a KMS client from within a local service), we must create a native client by passing a Dafny client implementation, and not by passing in a native client configuration.