-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure event body is a string (#393)
* Add form to string conversion in eventFromRequest * Reformat logic * Change a func name * Update the switch case logic * Remove the function * Add comment to explain the process * Update comment * Add Provider mock * Add encoding test * Add missing break * Fix the test * Remove breaks * Rename a test func * Add multiple scenarios in the test * Change a key name * Add test case for multipart/form-data
- Loading branch information
1 parent
f673e72
commit 0da4cd7
Showing
4 changed files
with
128 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//go:generate mockgen -package mock -destination ./targetcache.go github.com/serverless/event-gateway/router Targeter | ||
//go:generate mockgen -package mock -destination ./provider.go github.com/serverless/event-gateway/function Provider | ||
|
||
package mock |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters