Skip to content

Commit

Permalink
Increase test coverage (#19)
Browse files Browse the repository at this point in the history
* Adding tests for PUT/POST and FIND/PATCH/POST

* Separate tests for each strategy, added test for FindDeletePost

---------

Co-authored-by: paulholiday <[email protected]>
  • Loading branch information
paulholiday and paulholiday authored Feb 13, 2023
1 parent 3ceb1d1 commit 4e9eda4
Show file tree
Hide file tree
Showing 2 changed files with 914 additions and 12 deletions.
2 changes: 1 addition & 1 deletion seeder/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (r *SeederImpl) post(ctx context.Context, action *Action) error {

func (r *SeederImpl) patch(ctx context.Context, action *Action) error {
endpoint := action.Endpoint
if action.PutEndpointSuffix != nil {
if action.PatchEndpointSuffix != nil {
endpoint = fmt.Sprintf("%s%s", endpoint, *action.PatchEndpointSuffix)
}
if action.foundId != "" {
Expand Down
Loading

0 comments on commit 4e9eda4

Please sign in to comment.