Skip to content

Commit 8dff860

Browse files
re-Tickslayerjain
andauthored
feat: add support for test-export (#133)
* refactor: updates the mock schema for tes-export Signed-off-by: re-Tick <[email protected]> * refactor: removes constants for mock-lib from keploy package moves constants for mock-lib from go-sdk/keploy package to keploy/models Signed-off-by: re-Tick <[email protected]> * refactor: updates the type models.mock to proto.mock in keploy context Signed-off-by: re-Tick <[email protected]> * chore: improve log message for new context Signed-off-by: re-Tick <[email protected]> * chore: use different emoji to represent mocks Signed-off-by: slayerjain <[email protected]> Signed-off-by: re-Tick <[email protected]> * fix: adds a grpc call to avoid pushing mocks in already recorded yaml Signed-off-by: re-Tick <[email protected]> * fix: removes replace statement from go.mod Signed-off-by: re-Tick <[email protected]> * feat: exports testcases to yaml files Signed-off-by: re-Tick <[email protected]> * fix(gin): adds mocks in context during test for gin router Signed-off-by: re-Tick <[email protected]> * fix: removes duplicate functions adds struct for checking unique mock name of mock library Signed-off-by: re-Tick <[email protected]> * docs: adds documentation for test-export and mock-library adds example and configurations of mock-library for unit-tests Signed-off-by: re-Tick <[email protected]> Signed-off-by: re-Tick <[email protected]> Signed-off-by: slayerjain <[email protected]> Signed-off-by: Ritik Jain <[email protected]> Co-authored-by: slayerjain <[email protected]>
1 parent 6543008 commit 8dff860

File tree

12 files changed

+353
-151
lines changed

12 files changed

+353
-151
lines changed

README.md

Lines changed: 52 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
# Keploy Go-SDK
22
[![PkgGoDev](https://pkg.go.dev/badge/github.com/keploy/go-sdk#readme-contents)](https://pkg.go.dev/github.com/keploy/go-sdk#readme-contents)
33

4-
This is the client SDK for Keploy API testing platform. There are 2 modes:
5-
1. **Record mode**
6-
1. Record requests, response and all external calls and sends to Keploy server.
7-
2. After keploy server removes duplicates, it then runs the request on the API again to identify noisy fields.
8-
3. Sends the noisy fields to the keploy server to be saved along with the testcase.
9-
2. **Test mode**
10-
1. Fetches testcases for the app from keploy server.
11-
2. Calls the API with same request payload in testcase.
12-
3. Mocks external calls based on data stored in the testcase.
13-
4. Validates the respones and uploads results to the keploy server
14-
15-
4+
This is the client SDK for Keploy API testing platform.
5+
## Features
6+
* **API testing**: Keploy can record API calls along with their external dependency calls and replay them in testing environment.
7+
### Mechanism
8+
There are 2 modes:
9+
1. Record mode
10+
1. Record requests, response and all external calls and sends to Keploy server.
11+
2. After removing duplicates, it runs the request on the API again to identify noisy fields.
12+
3. Sends the noisy fields to the keploy server to be saved along with the testcase.
13+
2. Test mode
14+
1. Fetches testcases for the app from keploy server.
15+
2. Calls the API with same request payload in testcase.
16+
3. Mocks external calls based on data stored in the testcase.
17+
4. Validates the respones and uploads results to the keploy server.
18+
* **Mock library**: It removes the necessity to write mocks manually in your unit-tests.
19+
### Mechanism
20+
1. During Record, it captures the outputs of integerated dependencies and stores them in yaml file locally.
21+
2. During Test, fetches and returns the stored outputs of dependency calls to respective unit-tests.
22+
23+
Just by recording the external calls from unit tests and returning the mocked outputs during testing.
1624
## Contents
1725

1826
1. [Installation](#installation)
@@ -28,7 +36,7 @@ This is the client SDK for Keploy API testing platform. There are 2 modes:
2836
go get -u github.com/keploy/go-sdk
2937
```
3038
## Usage
31-
39+
### API testing
3240
```go
3341
import(
3442
"github.com/keploy/go-sdk/keploy"
@@ -40,15 +48,24 @@ Create your app instance
4048
```go
4149
k := keploy.New(keploy.Config{
4250
App: keploy.AppConfig{
43-
Name: "<app_name>",
44-
Port: "<app_port>",
51+
Name "<app_name>", // required field. app_id for grouping testcases.
52+
Host "<api_server_host>", // optional. `default:"0.0.0.0"`
53+
Port "<api_server_port>", // required.
54+
Delay <delay_testing_for>, // optional. `default:"5s"`
55+
Timeout <context_deadline_for_simulate>, // optional. `default:"60s"`
56+
Filter keploy.Filter{
57+
UrlRegex: "<regular_expression>", // api routes to be tested and recorded
58+
}, // optional.
59+
TestPath "", // `optional. default: <absolute-path>/keploy-tests`
60+
MockPath "", // `optional. default: <absolute-path>/keploy-tests/mocks`
4561
},
4662
Server: keploy.ServerConfig{
47-
URL: "<keploy_host>",
48-
LicenseKey: "<license_key>", //optional for managed services
63+
URL: "<keploy_host>", // optional. `default:"https://api.keploy.io"`
64+
LicenseKey: "<license_key>", // optional. for managed services
4965
},
5066
})
5167
```
68+
**Note**: Testcases can be stored on either mongoDB or in yaml files locally. By default, testcases are generated in yaml files locally.
5269
For example:
5370
```go
5471
port := "8080"
@@ -63,6 +80,24 @@ port := "8080"
6380
})
6481

6582
```
83+
84+
### Mock Library
85+
```go
86+
import(
87+
"github.com/keploy/go-sdk/keploy"
88+
"github.com/keploy/go-sdk/mock"
89+
)
90+
```
91+
Create your context instance containing keployContext and pass it to dependency calls.
92+
```go
93+
ctx := mock.NewContext(mock.Config{
94+
Name: "<name_for_mocks>", // unique for every mock
95+
Mode: keploy.MODE_RECORD, // Or keploy.MODE_TEST, Or keploy.MODE_OFF
96+
Path: "<local_path_for_yaml>", // relative(./internals) or absolute(/users/xyz/...)
97+
})
98+
```
99+
Integerate the dependency according to the following docs and pass the ctx context to them for mocking in unit-tests.
100+
66101
## Configure
67102
```
68103
export KEPLOY_MODE=keploy.MODE_TEST

go.mod

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,72 +20,80 @@ require (
2020
require (
2121
github.com/benbjohnson/clock v1.1.0
2222
github.com/go-chi/chi v1.5.4
23-
go.keploy.io/server v0.5.2
2423
)
2524

2625
require (
27-
github.com/andybalholm/brotli v1.0.4 // indirect
28-
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
29-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
30-
github.com/goccy/go-json v0.9.7 // indirect
31-
github.com/gorilla/websocket v1.4.2 // indirect
32-
github.com/hashicorp/golang-lru v0.5.4 // indirect
33-
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
34-
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
35-
github.com/lestrrat-go/httpcc v1.0.0 // indirect
36-
github.com/lestrrat-go/iter v1.0.1 // indirect
37-
github.com/lestrrat-go/option v1.0.0 // indirect
38-
github.com/matryer/moq v0.2.5 // indirect
39-
github.com/mitchellh/mapstructure v1.4.3 // indirect
40-
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
41-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
42-
github.com/urfave/cli/v2 v2.3.0 // indirect
43-
golang.org/x/mod v0.5.1 // indirect
44-
golang.org/x/tools v0.1.9 // indirect
45-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
46-
gopkg.in/yaml.v3 v3.0.1 // indirect
26+
github.com/gorilla/mux v1.8.0
27+
github.com/lestrrat-go/jwx v1.2.20
28+
github.com/valyala/fasthttp v1.35.0
29+
)
30+
31+
require (
32+
github.com/k0kubun/pp/v3 v3.1.0 // indirect
33+
github.com/tidwall/gjson v1.14.0 // indirect
34+
github.com/tidwall/match v1.1.1 // indirect
35+
github.com/tidwall/pretty v1.2.0 // indirect
36+
github.com/wI2L/jsondiff v0.2.0 // indirect
4737
)
4838

4939
require (
5040
github.com/99designs/gqlgen v0.15.1 // indirect
5141
github.com/agnivade/levenshtein v1.1.1 // indirect
42+
github.com/andybalholm/brotli v1.0.4 // indirect
43+
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
44+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
5245
github.com/gin-contrib/sse v0.1.0 // indirect
5346
github.com/go-chi/render v1.0.1 // indirect
5447
github.com/go-playground/locales v0.14.0 // indirect
5548
github.com/go-playground/universal-translator v0.18.0 // indirect
5649
github.com/go-stack/stack v1.8.1 // indirect
50+
github.com/goccy/go-json v0.9.7 // indirect
5751
github.com/golang/protobuf v1.5.2 // indirect
5852
github.com/golang/snappy v0.0.4 // indirect
5953
github.com/google/uuid v1.3.0 // indirect
60-
github.com/gorilla/mux v1.8.0
54+
github.com/gorilla/websocket v1.4.2 // indirect
55+
github.com/hashicorp/golang-lru v0.5.4 // indirect
6156
github.com/jmespath/go-jmespath v0.4.0 // indirect
6257
github.com/json-iterator/go v1.1.12 // indirect
6358
github.com/klauspost/compress v1.15.1 // indirect
6459
github.com/labstack/gommon v0.3.0 // indirect
6560
github.com/leodido/go-urn v1.2.1 // indirect
66-
github.com/lestrrat-go/jwx v1.2.20
67-
github.com/mattn/go-colorable v0.1.8 // indirect
61+
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
62+
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
63+
github.com/lestrrat-go/httpcc v1.0.0 // indirect
64+
github.com/lestrrat-go/iter v1.0.1 // indirect
65+
github.com/lestrrat-go/option v1.0.0 // indirect
66+
github.com/matryer/moq v0.2.5 // indirect
67+
github.com/mattn/go-colorable v0.1.12 // indirect
6868
github.com/mattn/go-isatty v0.0.14 // indirect
69+
github.com/mitchellh/mapstructure v1.4.3 // indirect
6970
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
7071
github.com/modern-go/reflect2 v1.0.2 // indirect
72+
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
7173
github.com/pkg/errors v0.9.1 // indirect
74+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
7275
github.com/ugorji/go/codec v1.2.7 // indirect
76+
github.com/urfave/cli/v2 v2.3.0 // indirect
7377
github.com/valyala/bytebufferpool v1.0.0 // indirect
74-
github.com/valyala/fasthttp v1.35.0
7578
github.com/valyala/fasttemplate v1.2.1 // indirect
7679
github.com/vektah/gqlparser/v2 v2.2.0 // indirect
7780
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
7881
github.com/xdg-go/scram v1.1.0 // indirect
7982
github.com/xdg-go/stringprep v1.0.2 // indirect
8083
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
84+
go.keploy.io/server v0.5.6
8185
go.uber.org/atomic v1.9.0 // indirect
8286
go.uber.org/multierr v1.7.0 // indirect
8387
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
88+
golang.org/x/mod v0.5.1 // indirect
8489
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
8590
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
8691
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
8792
golang.org/x/text v0.3.7 // indirect
93+
golang.org/x/tools v0.1.9 // indirect
94+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
8895
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
8996
google.golang.org/protobuf v1.28.0 // indirect
9097
gopkg.in/yaml.v2 v2.4.0 // indirect
98+
gopkg.in/yaml.v3 v3.0.1 // indirect
9199
)

go.sum

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw
124124
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
125125
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
126126
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
127+
github.com/k0kubun/pp/v3 v3.1.0 h1:ifxtqJkRZhw3h554/z/8zm6AAbyO4LLKDlA5eV+9O8Q=
128+
github.com/k0kubun/pp/v3 v3.1.0/go.mod h1:vIrP5CF0n78pKHm2Ku6GVerpZBJvscg48WepUYEk2gw=
127129
github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
128130
github.com/keploy/go-sdk v0.5.3/go.mod h1:FrKEdAbypVbeHdboueHZ3icD24pPRSn/jsZ5KLzzjJQ=
129131
github.com/kevinmbeaulieu/eq-go v1.0.0/go.mod h1:G3S8ajA56gKBZm4UB9AOyoOS37JO3roToPzKNM8dtdM=
@@ -163,8 +165,9 @@ github.com/matryer/moq v0.2.5 h1:BGQISyhl7Gc9W/gMYmAJONh9mT6AYeyeTjNupNPknMs=
163165
github.com/matryer/moq v0.2.5/go.mod h1:9RtPYjTnH1bSBIkpvtHkFN7nbWAnO7oRpdJkEIn6UtE=
164166
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
165167
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
166-
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
167168
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
169+
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
170+
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
168171
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
169172
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
170173
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
@@ -206,8 +209,13 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
206209
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
207210
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
208211
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
209-
github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
212+
github.com/tidwall/gjson v1.14.0 h1:6aeJ0bzojgWLa82gDQHcx3S0Lr/O51I9bJ5nv6JFx5w=
213+
github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
214+
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
215+
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
210216
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
217+
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
218+
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
211219
github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo=
212220
github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
213221
github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=
@@ -224,6 +232,8 @@ github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+
224232
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
225233
github.com/vektah/gqlparser/v2 v2.2.0 h1:bAc3slekAAJW6sZTi07aGq0OrfaCjj4jxARAaC7g2EM=
226234
github.com/vektah/gqlparser/v2 v2.2.0/go.mod h1:i3mQIGIrbK2PD1RrCeMTlVbkF2FJ6WkU1KJlJlC+3F4=
235+
github.com/wI2L/jsondiff v0.2.0 h1:dE00WemBa1uCjrzQUUTE/17I6m5qAaN0EMFOg2Ynr/k=
236+
github.com/wI2L/jsondiff v0.2.0/go.mod h1:axTcwtBkY4TsKuV+RgoMhHyHKKFRI6nnjRLi8LLYQnA=
227237
github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
228238
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
229239
github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs=
@@ -237,8 +247,9 @@ github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/
237247
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
238248
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
239249
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
240-
go.keploy.io/server v0.5.2 h1:3HukrX9kRGB2o/7vHM5wLhzUthGPLp8BipwU+CJITxA=
241250
go.keploy.io/server v0.5.2/go.mod h1:TL7IcngMUjrpm9uoJbY7dfqfNNOqE5NSgQ+eHh3pp0I=
251+
go.keploy.io/server v0.5.6 h1:wQbhwyV+zJWBE2Zz8cVncF1Q3g62zdwjOkr3Q1ZJJCM=
252+
go.keploy.io/server v0.5.6/go.mod h1:/wHYlepZLITJ+MsYnRfRED9K/ENset2JhfzeAqSGnV0=
242253
go.mongodb.org/mongo-driver v1.8.3 h1:TDKlTkGDKm9kkJVUOAXDK5/fkqKHJVwYQSpoRfB43R4=
243254
go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY=
244255
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
@@ -318,6 +329,7 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
318329
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
319330
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
320331
golang.org/x/sys v0.0.0-20210910150752-751e447fb3d0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
332+
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
321333
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
322334
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
323335
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 h1:nhht2DYV/Sn3qOayu8lM+cU1ii9sTLUeBQwQQfUHtrs=

integrations/kgin/v1/gin-v1.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func mw(k *keploy.Keploy) gin.HandlerFunc {
7171
Mode: keploy.MODE_TEST,
7272
TestID: id,
7373
Deps: k.GetDependencies(id),
74+
Mock: k.GetMocks(id),
7475
})
7576
resp := captureRespGin(c)
7677
k.PutResp(id, resp)

0 commit comments

Comments
 (0)