codecanvas
codecanvas copied to clipboard
Feature/cli migrate with testing
- refactored the
langsandruncommands to use the updated API - added a
timeoutoption to the root command for adjusting client timeouts - refactored the
Clientobject to take in a Requester, for use in mocks - created some mock tests as well as some basic tests against a mock HTTP server
Going to flag this as a draft right now; this is my first attempt at using Gomock so I'm open to any feedback on how I can improve the tests and/or make them more idiomatic.
I could also implement some more blackbox tests that run against the actual deployment to check for expected behavior.