Use the mocks for tests and benchmarks.

This commit is contained in:
2024-09-13 21:27:34 +01:00
parent 7a791965ca
commit 50c1033ad1
5 changed files with 126 additions and 158 deletions
+5
View File
@@ -1,6 +1,7 @@
package gql
import (
"net/http"
"time"
"github.com/gookit/goutil/envutil"
@@ -38,3 +39,7 @@ func (b *BaseClient) SetOutput(responseType string) {
// TODO: implement
b.responseType = responseType
}
func (b *BaseClient) SetHTTPClient(client *http.Client) {
b.client = client
}