MCPcopy Create free account
hub / github.com/asternic/wuzapi / newRequest

Function newRequest

stdio_test.go:331–337  ·  view source on GitHub ↗

newRequest creates a new request builder with string or numeric ID

(id interface{}, method string, params interface{})

Source from the content-addressed store, hash-verified

329
330// newRequest creates a new request builder with string or numeric ID
331func newRequest(id interface{}, method string, params interface{}) *testRequest {
332 return &testRequest{
333 ID: id,
334 Method: method,
335 Params: params,
336 }
337}
338
339// toJSON converts the request to a JSON string
340func (r *testRequest) toJSON(t *testing.T) string {

Callers 15

TestStdioHealthRequestFunction · 0.85
TestAdminUsersAddAndListFunction · 0.85
TestAdminUsersGetFunction · 0.85
TestAdminUsersDeleteFunction · 0.85
TestSessionStatusFunction · 0.85
TestChatSendTextFunction · 0.85
TestChatHistoryFunction · 0.85
TestWebhookUpdateFunction · 0.85
TestWebhookSetFunction · 0.85
TestWebhookDeleteFunction · 0.85
TestNumericRequestIDFunction · 0.85
TestNumericZeroRequestIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected