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

Simplify unit testing using new dispatchtest.Call helper #15

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jul 2, 2024

While writing a testing guide (https://github.com/dispatchrun/dispatch-go/wiki/Testing-Functions-&-Workflows), I found it was awkward having to manually build a call to the function I was testing, and then having to specify the output type parameter because of type erasure on the call.

I've reworked the test helper so that it's no longer necessary to build a call or to specify the output type.

@chriso chriso self-assigned this Jul 2, 2024
@chriso chriso merged commit 42f61a4 into main Jul 2, 2024
3 checks passed
@chriso chriso deleted the simplify-unit-testing branch July 2, 2024 03:27
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

Successfully merging this pull request may close these issues.

2 participants