MCPcopy Index your code
hub / github.com/dnote/dnote / RunForWebAndAPI

Function RunForWebAndAPI

pkg/server/testutils/main.go:261–269  ·  view source on GitHub ↗

RunForWebAndAPI runs the given test function for web and API

(t *testing.T, name string, runTest endpointTest)

Source from the content-addressed store, hash-verified

259
260// RunForWebAndAPI runs the given test function for web and API
261func RunForWebAndAPI(t *testing.T, name string, runTest endpointTest) {
262 t.Run(fmt.Sprintf("%s-web", name), func(t *testing.T) {
263 runTest(t, EndpointWeb)
264 })
265
266 t.Run(fmt.Sprintf("%s-api", name), func(t *testing.T) {
267 runTest(t, EndpointAPI)
268 })
269}
270
271// PayloadWrapper is a wrapper for a payload that can be converted to
272// either URL form values or JSON

Callers 2

TestLoginFunction · 0.92
TestLogoutFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestLoginFunction · 0.74
TestLogoutFunction · 0.74