It appear functions like `ec2.LookupVpc` don’t per...
# golang
It appear functions like
don’t perform lookups in [unit] tests. Are there any examples of mocking them out?
I don't believe we have an example test that mocks out a get call. You can see the implementation of the mocks here: any get/lookup function will ultimately call ReadResource wich calls NewResource in turn.
We do have an internal test in the Go SDK that tests ReadResource which may be useful reference:
👍 thanks for this. This helped