Version 1.20.0 changed the BaseClient SendRequest method (seen in this pull request) to add body ...byte as a function parameter. The corresponding MockBaseClient was not updated.
Steps to Reproduce
Use twilio-go version 1.20.1
Attempt to use a MockBaseClient (see code below)
Code Snippet
ctrl := gomock.NewController(t)
c := client.NewMockBaseClient(ctrl)
twilioClient := twilio.NewRestClientWithParams(twilio.ClientParams{Client: c})
Exception/Log
cannot use c (variable of type *client.MockBaseClient) as client.BaseClient value in struct literal: *client.MockBaseClient does not implement client.BaseClient (wrong type for method SendRequest)
have SendRequest(string, string, url.Values, map[string]interface{}) (*http.Response, error)
want SendRequest(string, string, url.Values, map[string]interface{}, ...byte) (*http.Response, error)compiler[InvalidIfaceAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#InvalidIfaceAssign)
Issue Summary
Version
1.20.0
changed the BaseClient SendRequest method (seen in this pull request) to addbody ...byte
as a function parameter. The corresponding MockBaseClient was not updated.Steps to Reproduce
twilio-go
version1.20.1
Code Snippet
Exception/Log
Technical details:
1.20.1
go version go1.22.2 darwin/arm64