mongodb-stitch-cli
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -10,2 +10,5 @@ { | ||
"WarnUnmatchedDirective": true, | ||
"Exclude": [ | ||
".*/mocks/.*" | ||
], | ||
"Enable": [ | ||
@@ -12,0 +15,0 @@ "staticcheck", |
{ | ||
"name": "mongodb-stitch-cli", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "The MongoDB Stitch Command Line Interface", | ||
@@ -22,3 +22,3 @@ "repository": { | ||
"dependencies": { | ||
"request": "^2.87.0" | ||
"request": "^2.88.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -59,1 +59,21 @@ # MongoDB Stitch CLI | ||
``` | ||
### Mocks | ||
A custom mock of `StitchClient` can be found in `utils/test/utils.go` which can be used for simple mocking of most `StitchClient` methods. | ||
If you need more sophisticated mocking utilities (such as being able to mock calls to the same method more than once in a single test) you can use the [`gomock`](https://github.com/golang/mock) version found in `api/mocks/stitch_api.go` | ||
To update the `gomock` version, simply install `gomock`: | ||
``` | ||
go get github.com/golang/mock/gomock | ||
go install github.com/golang/mock/mockgen | ||
``` | ||
And run: | ||
``` | ||
mockgen -source ./api/stitch_client.go -destination ./api/mocks/stitch_client.go | ||
``` |
{ | ||
"version": "1.5.0", | ||
"baseDirectory": "stitch_cli_rhel70_2e23144404525195539ba4e8e266ce196af1fced_19_06_18_17_28_29" | ||
"version": "1.6.0", | ||
"baseDirectory": "stitch_cli_rhel70_d565dea10a9b37a5d4f39c7c519ecdc85ba8d8cf_19_07_12_16_54_14" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37375
361
79
Updatedrequest@^2.88.0