Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interfaces and Tests! #9

Open
lucymhdavies opened this issue Jun 13, 2021 · 0 comments
Open

Interfaces and Tests! #9

lucymhdavies opened this issue Jun 13, 2021 · 0 comments

Comments

@lucymhdavies
Copy link
Collaborator

For example...

https://github.com/lucydavinhart/api.lmhd.me/blob/main/v1/front_federate.go#L38

func FrontFederateHandler(req events.APIGatewayProxyRequest, format string) (Response, error) {<br class="Apple-interchange-newline">

Does the handler need to accept an events.APIGatewayProxyRequest, or can we make do with a generic interface?

(hint: it's the latter. and the latter means we can do code injection in our tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant