gusaul / go-dynamock

Amazon Dynamo DB Mock Driver for Golang to Test Database Interactions
MIT License
115 stars 50 forks source link

Error handling in Apis #27

Open Archiit19 opened 4 years ago

Archiit19 commented 4 years ago

Instead of printing API errors in case of empty Inputs, we should allow users to set error in the APIs that would give flexibility and consistency with the AWS API responses.

stan-irl commented 1 year ago

yeah id like this as well. right now its not possible to replicate TransactionCanceledException or ConditionalCheckFailedException which makes it impossible to test these codepaths.

I imagine most people who find this repo are looking for ways to achieve 100% code coverage (well at least thats how I found it)