aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-12-20 16:32:01 +0100
committerAleksandr Nogikh <nogikh@google.com>2023-12-20 15:43:38 +0000
commitff72ee7df74ea8e8783eb07751140e30de680394 (patch)
tree91812f3e614e21f245991a3fa520feeede660021 /dashboard/dashapi
parentde21eb89f42553d17116092f8b962759bf2633f7 (diff)
pgk/asset: don't use dashapi.NewMock()
Define a pkg-only view of the required dashapi methods.
Diffstat (limited to 'dashboard/dashapi')
-rw-r--r--dashboard/dashapi/dashapi.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index d31b78ba1..aaaf3edfa 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -40,12 +40,6 @@ func New(client, addr, key string) (*Dashboard, error) {
return NewCustom(client, addr, key, http.NewRequest, http.DefaultClient.Do, nil, nil)
}
-func NewMock(mocker RequestMocker) *Dashboard {
- return &Dashboard{
- mocker: mocker,
- }
-}
-
type (
RequestCtor func(method, url string, body io.Reader) (*http.Request, error)
RequestDoer func(req *http.Request) (*http.Response, error)