newRequest creates a new request builder with string or numeric ID
(id interface{}, method string, params interface{})
| 329 | |
| 330 | // newRequest creates a new request builder with string or numeric ID |
| 331 | func 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 |
| 340 | func (r *testRequest) toJSON(t *testing.T) string { |
no outgoing calls
no test coverage detected