Home
last modified time | relevance | path

Searched refs:httpmock (Results 1 – 25 of 246) sorted by relevance

12345678910

/dports/devel/gh/cli-2.4.0/pkg/cmd/run/view/
H A Dview_test.go163 httpStubs func(*httpmock.Registry)
185 httpmock.StringResponse(`{}`))
224 httpmock.StringResponse(`{}`))
227 httpmock.StringResponse(``))
262 httpmock.StringResponse(``))
296 httpmock.StringResponse(`{}`))
299 httpmock.StringResponse(``))
327 httpmock.StringResponse(`{}`))
330 httpmock.StringResponse(``))
365 httpmock.StringResponse(``))
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/repo/create/
H A Dhttp_test.go17 stubs func(t *testing.T, r *httpmock.Registry)
35 httpmock.GraphQLMutation(
76 httpmock.GraphQLMutation(
115 httpmock.REST("GET", "users/snacks-inc"),
119 httpmock.GraphQLMutation(
162 httpmock.GraphQLMutation(
206 httpmock.GraphQLMutation(
246 httpmock.REST("GET", "users/myorg"),
250 httpmock.GraphQLMutation(
289 httpmock.REST("POST", "user/repos"),
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/auth/status/
H A Dstatus_test.go92 reg.Register(httpmock.REST("GET", "api/v3/"), httpmock.ScopesResponder("repo,read:org"))
107 reg.Register(httpmock.REST("GET", "api/v3/"), httpmock.ScopesResponder("repo"))
108 reg.Register(httpmock.REST("GET", ""), httpmock.ScopesResponder("repo,read:org"))
125 reg.Register(httpmock.REST("GET", ""), httpmock.ScopesResponder("repo,read:org"))
141 reg.Register(httpmock.REST("GET", "api/v3/"), httpmock.ScopesResponder("repo,read:org"))
142 reg.Register(httpmock.REST("GET", ""), httpmock.ScopesResponder("repo,read:org"))
160 reg.Register(httpmock.REST("GET", "api/v3/"), httpmock.ScopesResponder("repo,read:org"))
161 reg.Register(httpmock.REST("GET", ""), httpmock.ScopesResponder("repo,read:org"))
181 reg.Register(httpmock.REST("GET", "api/v3/"), httpmock.ScopesResponder("repo,read:org"))
182 reg.Register(httpmock.REST("GET", ""), httpmock.ScopesResponder("repo,read:org"))
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/workflow/disable/
H A Ddisable_test.go96 httpStubs func(*httpmock.Registry)
109 httpStubs: func(reg *httpmock.Registry) {
121 httpmock.StatusStringResponse(204, "{}"))
134 httpStubs: func(reg *httpmock.Registry) {
159 httpStubs: func(reg *httpmock.Registry) {
189 httpStubs: func(reg *httpmock.Registry) {
192 httpmock.JSONResponse(shared.AWorkflow))
204 httpStubs: func(reg *httpmock.Registry) {
218 httpStubs: func(reg *httpmock.Registry) {
243 httpStubs: func(reg *httpmock.Registry) {
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/workflow/enable/
H A Denable_test.go96 httpStubs func(*httpmock.Registry)
109 httpStubs: func(reg *httpmock.Registry) {
121 httpmock.StatusStringResponse(204, "{}"))
134 httpStubs: func(reg *httpmock.Registry) {
150 httpmock.StatusStringResponse(204, "{}"))
160 httpStubs: func(reg *httpmock.Registry) {
189 httpStubs: func(reg *httpmock.Registry) {
207 httpStubs: func(reg *httpmock.Registry) {
221 httpStubs: func(reg *httpmock.Registry) {
246 httpStubs: func(reg *httpmock.Registry) {
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/workflow/view/
H A Dview_test.go191 httpStubs func(*httpmock.Registry)
222 httpmock.JSONResponse(aWorkflow),
237 httpmock.JSONResponse(aWorkflow),
253 httpmock.JSONResponse(aWorkflow),
274 httpmock.JSONResponse(aWorkflow),
289 httpmock.JSONResponse(aWorkflow),
308 httpmock.JSONResponse(aWorkflow),
327 httpmock.JSONResponse(aWorkflow),
348 httpmock.JSONResponse(aWorkflow),
366 httpmock.JSONResponse(aWorkflow),
[all …]
/dports/devel/git-town/git-town-7.6.0/src/drivers/
H A Dgithub_test.go22 httpmock.Activate()
29 httpmock.DeactivateAndReset()
75 httpmock.RegisterResponder("GET", githubCurrOpen, httpmock.NewStringResponder(404, ""))
83 httpmock.RegisterResponder("GET", githubCurrOpen, httpmock.NewStringResponder(200, "[]"))
106 httpmock.RegisterResponder("GET", githubChildOpen, httpmock.NewStringResponder(404, ""))
119 httpmock.RegisterResponder("GET", githubChildOpen, httpmock.NewStringResponder(200, "[]"))
120 httpmock.RegisterResponder("GET", githubCurrOpen, httpmock.NewStringResponder(404, ""))
133 httpmock.RegisterResponder("GET", githubChildOpen, httpmock.NewStringResponder(200, "[]"))
134 httpmock.RegisterResponder("GET", githubCurrOpen, httpmock.NewStringResponder(200, "[]"))
150 httpmock.RegisterResponder("GET", githubChildOpen, httpmock.NewStringResponder(200, "[]"))
[all …]
H A Dgitea_test.go9 httpmock "gopkg.in/jarcoal/httpmock.v1" packageName
21 httpmock.Activate()
28 httpmock.DeactivateAndReset()
74 httpmock.RegisterResponder("GET", giteaCurrOpen, httpmock.NewStringResponder(404, ""))
82 httpmock.RegisterResponder("GET", giteaCurrOpen, httpmock.NewStringResponder(200, "[]"))
105 httpmock.RegisterResponder("GET", giteaCurrOpen, httpmock.NewStringResponder(404, ""))
119 httpmock.RegisterResponder("GET", giteaCurrOpen, httpmock.NewStringResponder(200, "[]"))
120 httpmock.RegisterResponder("GET", giteaPR1Merge, httpmock.NewStringResponder(404, ""))
134 httpmock.RegisterResponder("GET", giteaCurrOpen, httpmock.NewStringResponder(200, "[]"))
153httpmock.RegisterResponder("GET", giteaVersion, httpmock.NewStringResponder(200, `{"version": "1.1…
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/repo/sync/
H A Dsync_test.go109 httpStubs func(*httpmock.Registry)
119 httpStubs: func(reg *httpmock.Registry) {
270 httpStubs: func(reg *httpmock.Registry) {
286 httpStubs: func(reg *httpmock.Registry) {
301 httpmock.StringResponse(`{}`))
311 httpStubs: func(reg *httpmock.Registry) {
328 httpStubs: func(reg *httpmock.Registry) {
347 httpStubs: func(reg *httpmock.Registry) {
361 httpStubs: func(reg *httpmock.Registry) {
390 httpmock.StringResponse(`{}`))
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/issue/list/
H A Dlist_test.go62 http := &httpmock.Registry{}
83 http := &httpmock.Registry{}
111 http := &httpmock.Registry{}
116 httpmock.GraphQLQuery(`
130 httpmock.StringResponse(`
150 http := &httpmock.Registry{}
161 http := &httpmock.Registry{}
166 httpmock.StringResponse(`
184 reg := &httpmock.Registry{}
242 httpmock.GraphQLQuery(`
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/run/watch/
H A Dwatch_test.go106 httpmock.JSONResponse(shared.RunsPayload{
114 httpmock.JSONResponse(inProgressRun))
116 httpmock.REST("GET", "runs/2/jobs"),
121 httpmock.JSONResponse(completedRun))
123 httpmock.REST("GET", "runs/2/jobs"),
146 httpmock.JSONResponse(inProgressRun))
148 httpmock.REST("GET", "runs/2/jobs"),
159 httpmock.JSONResponse(completedRun))
161 httpmock.REST("GET", "runs/2/jobs"),
171 httpStubs func(*httpmock.Registry)
[all …]
/dports/security/lego/lego-4.5.3/vendor/github.com/jarcoal/httpmock/
H A DREADME.md1httpmock [![Build Status](https://travis-ci.org/jarcoal/httpmock.png?branch=v1)](https://travis-ci…
68 httpmock.Activate()
83 httpmock.GetTotalCallCount()
96 httpmock.Activate()
170 "github.com/jarcoal/httpmock"
175 httpmock.Activate()
180 httpmock.Reset()
184 httpmock.DeactivateAndReset()
192 "github.com/jarcoal/httpmock"
211 "github.com/jarcoal/httpmock"
[all …]
/dports/dns/rdap/rdap-e2ea151/vendor/github.com/jarcoal/httpmock/
H A DREADME.md1httpmock [![Build Status](https://travis-ci.org/jarcoal/httpmock.png?branch=v1)](https://travis-ci…
68 httpmock.Activate()
83 httpmock.GetTotalCallCount()
96 httpmock.Activate()
170 "github.com/jarcoal/httpmock"
175 httpmock.Activate()
180 httpmock.Reset()
184 httpmock.DeactivateAndReset()
192 "github.com/jarcoal/httpmock"
211 "github.com/jarcoal/httpmock"
[all …]
/dports/net/traefik/traefik-2.6.1/vendor/github.com/jarcoal/httpmock/
H A DREADME.md1httpmock [![Build Status](https://travis-ci.org/jarcoal/httpmock.png?branch=v1)](https://travis-ci…
68 httpmock.Activate()
83 httpmock.GetTotalCallCount()
96 httpmock.Activate()
170 "github.com/jarcoal/httpmock"
175 httpmock.Activate()
180 httpmock.Reset()
184 httpmock.DeactivateAndReset()
192 "github.com/jarcoal/httpmock"
211 "github.com/jarcoal/httpmock"
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/issue/create/
H A Dcreate_test.go343 httpmock.StringResponse(`
376 httpmock.StringResponse(`
383 httpmock.StringResponse(`
458 httpmock.StringResponse(`
466 httpmock.StringResponse(`
522 httpmock.StringResponse(`
572 httpmock.StringResponse(`
583 httpmock.StringResponse(`
594 httpmock.StringResponse(`
605 httpmock.StringResponse(`
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/pr/shared/
H A Dfinder_test.go28 httpStub func(*httpmock.Registry)
42 httpStub: func(r *httpmock.Registry) {
93 httpStub: func(r *httpmock.Registry) {
110 httpStub: func(r *httpmock.Registry) {
129 httpStub: func(r *httpmock.Registry) {
166 httpStub: func(r *httpmock.Registry) {
208 httpStub: func(r *httpmock.Registry) {
242 httpStub: func(r *httpmock.Registry) {
300 httpStub: func(r *httpmock.Registry) {
338 httpStub: func(r *httpmock.Registry) {
[all …]
/dports/devel/git-town/git-town-7.6.0/vendor/gopkg.in/jarcoal/httpmock.v1/
H A DREADME.md1 # httpmock [![Build Status](https://travis-ci.org/jarcoal/httpmock.png?branch=master)](https://trav…
9 go get gopkg.in/jarcoal/httpmock.v1
18 httpmock.Activate()
19 defer httpmock.DeactivateAndReset()
25 httpmock.GetTotalCallCount()
38 httpmock.Activate()
83 "github.com/jarcoal/httpmock"
88 httpmock.Activate()
93 httpmock.Reset()
97 httpmock.DeactivateAndReset()
[all …]
/dports/devel/git-town/git-town-7.6.0/vendor/gopkg.in/jarcoal/httpmock.v1/httpmock-61bcb58a0752/
H A DREADME.md1 # httpmock [![Build Status](https://travis-ci.org/jarcoal/httpmock.png?branch=master)](https://trav…
9 go get gopkg.in/jarcoal/httpmock.v1
18 httpmock.Activate()
19 defer httpmock.DeactivateAndReset()
25 httpmock.GetTotalCallCount()
38 httpmock.Activate()
83 "github.com/jarcoal/httpmock"
88 httpmock.Activate()
93 httpmock.Reset()
97 httpmock.DeactivateAndReset()
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/okta/okta-sdk-golang/v2/tests/unit/
H A Dretry_logic_test.go32 httpmock.Activate()
33 defer httpmock.DeactivateAndReset()
48 httpmock.GetTotalCallCount()
49 info := httpmock.GetCallCountInfo()
54 httpmock.Activate()
55 defer httpmock.DeactivateAndReset()
69 httpmock.GetTotalCallCount()
77 httpmock.Activate()
94 httpmock.GetTotalCallCount()
101 httpmock.Activate()
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/okta/okta-sdk-golang/tests/unit/
H A Dretry_logic_test.go34 httpmock.Activate()
35 defer httpmock.DeactivateAndReset()
50 httpmock.GetTotalCallCount()
51 info := httpmock.GetCallCountInfo()
56 httpmock.Activate()
57 defer httpmock.DeactivateAndReset()
71 httpmock.GetTotalCallCount()
79 httpmock.Activate()
96 httpmock.GetTotalCallCount()
103 httpmock.Activate()
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/run/cancel/
H A Dcancel_test.go89 httpStubs func(*httpmock.Registry)
102 httpStubs: func(reg *httpmock.Registry) {
105 httpmock.JSONResponse(inProgressRun))
119 httpStubs: func(reg *httpmock.Registry) {
122 httpmock.StatusStringResponse(404, ""))
132 httpStubs: func(reg *httpmock.Registry) {
135 httpmock.JSONResponse(completedRun))
138 httpmock.StatusStringResponse(409, ""),
149 httpStubs: func(reg *httpmock.Registry) {
164 httpStubs: func(reg *httpmock.Registry) {
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/run/list/
H A Dlist_test.go96 stubs func(*httpmock.Registry)
104 stubs: func(reg *httpmock.Registry) {
107 httpmock.JSONResponse(shared.RunsPayload{
120 stubs: func(reg *httpmock.Registry) {
123 httpmock.JSONResponse(shared.RunsPayload{
134 stubs: func(reg *httpmock.Registry) {
143 httpmock.JSONResponse(shared.RunsPayload{
160 stubs: func(reg *httpmock.Registry) {
174 stubs: func(reg *httpmock.Registry) {
189 stubs: func(reg *httpmock.Registry) {
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/run/rerun/
H A Drerun_test.go96 httpStubs func(*httpmock.Registry)
110 httpStubs: func(reg *httpmock.Registry) {
113 httpmock.JSONResponse(shared.FailedRun))
116 httpmock.StringResponse("{}"))
126 httpStubs: func(reg *httpmock.Registry) {
129 httpmock.JSONResponse(shared.RunsPayload{
134 httpmock.JSONResponse(shared.FailedRun))
137 httpmock.StringResponse("{}"))
150 httpStubs: func(reg *httpmock.Registry) {
168 httpStubs: func(reg *httpmock.Registry) {
[all …]
/dports/devel/gh/cli-2.4.0/pkg/cmd/issue/shared/
H A Dlookup_test.go20 httpStub func(*httpmock.Registry)
34 httpStub: func(r *httpmock.Registry) {
36 httpmock.GraphQL(`query IssueByNumber\b`),
53 httpStub: func(r *httpmock.Registry) {
55 httpmock.GraphQL(`query IssueByNumber\b`),
70 httpStub: func(r *httpmock.Registry) {
87 httpStub: func(r *httpmock.Registry) {
90 httpmock.StringResponse(`
139 httpStub: func(r *httpmock.Registry) {
142 httpmock.StringResponse(`
[all …]
/dports/sysutils/go-wtf/wtf-0.21.0/vendor/github.com/darkSasori/todoist/todoist-ec6b38b374ab/
H A Dprojects_test.go8 httpmock "gopkg.in/jarcoal/httpmock.v1" packageName
12 httpmock.Activate()
13 defer httpmock.DeactivateAndReset()
17 httpmock.RegisterResponder("POST", todoistURL+"projects",
23 return httpmock.NewStringResponse(400, ""), nil
30 return httpmock.NewJsonResponse(201, project)
32 httpmock.RegisterResponder("GET", todoistURL+"projects",
34 return httpmock.NewJsonResponse(200, listProjects)
38 return httpmock.NewJsonResponse(200, listProjects[0])
46 return httpmock.NewStringResponse(400, ""), nil
[all …]

12345678910