You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometime it's make sense to make an API call without actually calling the API. In order to support that this library has a built-in stub that can be triggered. You can enable stub by injecting certain value to the context data. You can also enforce that certain API call will always return error with specific type and message.
Copy file name to clipboardexpand all lines: README.md
+48-1
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,53 @@ func main() {
79
79
80
80
For more example check [here](main_integration_test.go).
81
81
82
+
## Test Double / Stub
83
+
84
+
Sometime it's make sense to make an API call without actually calling the API. In order to support that this library has a built-in stub that can be triggered. You can enable stub by injecting certain value to the context data. You can also enforce that certain API call will always return error with specific type and
0 commit comments