Skip to content

Commit

Permalink
[DDO-3219] Fix upsert API methods and add Swagger comment test (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-r-warren authored Oct 13, 2023
1 parent ae6301b commit 192029f
Show file tree
Hide file tree
Showing 9 changed files with 961 additions and 12 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ generate-swagger:
# To install mockery, `brew install mockery`
# (As a backup, use `go install github.com/vektra/mockery/[email protected]` but check https://github.com/vektra/mockery/releases for versions)
generate-mocks:
cd sherlock && go generate ./...
cd sherlock && mockery

# We use `go mod vendor` to package local dependencies in a way that the gcloud CLI can upload, but
# we don't keep that directory around because it'll confuse GoLand (we want our source of truth to be
Expand Down
5 changes: 5 additions & 0 deletions sherlock/.mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ mockname: "Mock{{ .InterfaceNameCamel }}"
outpkg: "{{ .PackageName }}_mocks"

packages:
github.com/gin-gonic/gin:
interfaces:
IRoutes:
config:
dir: ./internal/api/gin_mocks
github.com/broadinstitute/sherlock/sherlock/internal/github:
interfaces:
mockableActionsClient:
Expand Down
Loading

0 comments on commit 192029f

Please sign in to comment.