Skip to content

Commit

Permalink
Remove unnecessary mock fns
Browse files Browse the repository at this point in the history
  • Loading branch information
tlindsay committed Dec 6, 2024
1 parent 47652a7 commit e56abbf
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions pkg/mock/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,11 @@ type API struct {
TestAlertDefinitionFn func(i *fastly.TestAlertDefinitionInput) error
ListAlertHistoryFn func(i *fastly.ListAlertHistoryInput) (*fastly.AlertHistoryResponse, error)

ListObservabilityCustomDashboardsFn func(i *fastly.ListObservabilityCustomDashboardsInput) (*fastly.ListDashboardsResponse, error)
CreateObservabilityCustomDashboardFn func(i *fastly.CreateObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
GetObservabilityCustomDashboardFn func(i *fastly.GetObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
UpdateObservabilityCustomDashboardFn func(i *fastly.UpdateObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
DeleteObservabilityCustomDashboardFn func(i *fastly.DeleteObservabilityCustomDashboardInput) error
CreateObservabilityCustomDashboardItemFn func(i *fastly.DashboardItem) (*fastly.ObservabilityCustomDashboard, error)
GetObservabilityCustomDashboardItemFn func(dashboardID, itemID string) (*fastly.ObservabilityCustomDashboard, error)
UpdateObservabilityCustomDashboardItemFn func(i *fastly.DashboardItem) (*fastly.ObservabilityCustomDashboard, error)
DeleteObservabilityCustomDashboardItemFn func(dashboardID, itemID string) (*fastly.ObservabilityCustomDashboard, error)
ListObservabilityCustomDashboardsFn func(i *fastly.ListObservabilityCustomDashboardsInput) (*fastly.ListDashboardsResponse, error)
CreateObservabilityCustomDashboardFn func(i *fastly.CreateObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
GetObservabilityCustomDashboardFn func(i *fastly.GetObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
UpdateObservabilityCustomDashboardFn func(i *fastly.UpdateObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error)
DeleteObservabilityCustomDashboardFn func(i *fastly.DeleteObservabilityCustomDashboardInput) error
}

// AllDatacenters implements Interface.
Expand Down Expand Up @@ -2059,23 +2055,3 @@ func (m API) ListObservabilityCustomDashboards(i *fastly.ListObservabilityCustom
func (m API) UpdateObservabilityCustomDashboard(i *fastly.UpdateObservabilityCustomDashboardInput) (*fastly.ObservabilityCustomDashboard, error) {
return m.UpdateObservabilityCustomDashboardFn(i)
}

// CreateObservabilityCustomDashboard implements Interface.
func (m API) CreateObservabilityCustomDashboardItem(i *fastly.DashboardItem) (*fastly.ObservabilityCustomDashboard, error) {
return m.CreateObservabilityCustomDashboardItemFn(i)
}

// DeleteObservabilityCustomDashboard implements Interface.
func (m API) DeleteObservabilityCustomDashboardItem(dashboardID, itemID string) (*fastly.ObservabilityCustomDashboard, error) {
return m.DeleteObservabilityCustomDashboardItemFn(dashboardID, itemID)
}

// GetObservabilityCustomDashboard implements Interface.
func (m API) GetObservabilityCustomDashboardItem(dashboardID, itemID string) (*fastly.ObservabilityCustomDashboard, error) {
return m.GetObservabilityCustomDashboardItemFn(dashboardID, itemID)
}

// UpdateObservabilityCustomDashboard implements Interface.
func (m API) UpdateObservabilityCustomDashboardItem(i *fastly.DashboardItem) (*fastly.ObservabilityCustomDashboard, error) {
return m.UpdateObservabilityCustomDashboardItemFn(i)
}

0 comments on commit e56abbf

Please sign in to comment.