Files
zeekayandHanzo Dev 1ab6e799c1 cd: the module is github.com/hanzoai/cd, where it is actually hosted
go.mod still declared `module github.com/hanzoai/deploy` after the repo was
renamed. A Go module path is not cosmetic — it is the resolvable location. So
`go get github.com/hanzoai/cd` could not work, and anything importing this
module had to spell a name that no longer exists at that address. The build log
of v3.6.0 is where it surfaced: the compiler was still emitting
github.com/hanzoai/deploy/cmd/cd/commands.

3541 import paths across 690 .go, 19 .proto, 4 .yaml, 3 .sh, 2 .mod, Procfile
and Makefile. Plus the 62 ghcr.io/hanzoai/deploy image references, moved to
ghcr.io/hanzoai/cd to match hanzo.yml's build target — a distinct string from
the module path, replaced separately so neither could clobber the other.

go mod tidy clean, CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./... clean.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 21:16:24 -07:00

100 lines
2.6 KiB
Go
Generated

// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify
package mocks
import (
"github.com/hanzoai/cd/util/workloadidentity"
mock "github.com/stretchr/testify/mock"
)
// NewTokenProvider creates a new instance of TokenProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewTokenProvider(t interface {
mock.TestingT
Cleanup(func())
}) *TokenProvider {
mock := &TokenProvider{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}
// TokenProvider is an autogenerated mock type for the TokenProvider type
type TokenProvider struct {
mock.Mock
}
type TokenProvider_Expecter struct {
mock *mock.Mock
}
func (_m *TokenProvider) EXPECT() *TokenProvider_Expecter {
return &TokenProvider_Expecter{mock: &_m.Mock}
}
// GetToken provides a mock function for the type TokenProvider
func (_mock *TokenProvider) GetToken(scope string) (*workloadidentity.Token, error) {
ret := _mock.Called(scope)
if len(ret) == 0 {
panic("no return value specified for GetToken")
}
var r0 *workloadidentity.Token
var r1 error
if returnFunc, ok := ret.Get(0).(func(string) (*workloadidentity.Token, error)); ok {
return returnFunc(scope)
}
if returnFunc, ok := ret.Get(0).(func(string) *workloadidentity.Token); ok {
r0 = returnFunc(scope)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*workloadidentity.Token)
}
}
if returnFunc, ok := ret.Get(1).(func(string) error); ok {
r1 = returnFunc(scope)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// TokenProvider_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
type TokenProvider_GetToken_Call struct {
*mock.Call
}
// GetToken is a helper method to define mock.On call
// - scope string
func (_e *TokenProvider_Expecter) GetToken(scope any) *TokenProvider_GetToken_Call {
return &TokenProvider_GetToken_Call{Call: _e.mock.On("GetToken", scope)}
}
func (_c *TokenProvider_GetToken_Call) Run(run func(scope string)) *TokenProvider_GetToken_Call {
_c.Call.Run(func(args mock.Arguments) {
var arg0 string
if args[0] != nil {
arg0 = args[0].(string)
}
run(
arg0,
)
})
return _c
}
func (_c *TokenProvider_GetToken_Call) Return(token *workloadidentity.Token, err error) *TokenProvider_GetToken_Call {
_c.Call.Return(token, err)
return _c
}
func (_c *TokenProvider_GetToken_Call) RunAndReturn(run func(scope string) (*workloadidentity.Token, error)) *TokenProvider_GetToken_Call {
_c.Call.Return(run)
return _c
}