diff --git a/pkg/onepassword/client/testing/mock/connect.go b/pkg/onepassword/client/testing/mock/connect.go index cd11eae..e511c64 100644 --- a/pkg/onepassword/client/testing/mock/connect.go +++ b/pkg/onepassword/client/testing/mock/connect.go @@ -12,7 +12,7 @@ type ConnectClientMock struct { } func (c *ConnectClientMock) GetVaults() ([]onepassword.Vault, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } @@ -22,12 +22,12 @@ func (c *ConnectClientMock) GetVault(uuid string) (*onepassword.Vault, error) { } func (c *ConnectClientMock) GetVaultByUUID(uuid string) (*onepassword.Vault, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) GetVaultByTitle(title string) (*onepassword.Vault, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } @@ -37,12 +37,12 @@ func (c *ConnectClientMock) GetVaultsByTitle(title string) ([]onepassword.Vault, } func (c *ConnectClientMock) GetItems(vaultQuery string) ([]onepassword.Item, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) GetItem(itemQuery, vaultQuery string) (*onepassword.Item, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } @@ -52,7 +52,7 @@ func (c *ConnectClientMock) GetItemByUUID(uuid string, vaultQuery string) (*onep } func (c *ConnectClientMock) GetItemByTitle(title string, vaultQuery string) (*onepassword.Item, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } @@ -62,37 +62,37 @@ func (c *ConnectClientMock) GetItemsByTitle(title string, vaultQuery string) ([] } func (c *ConnectClientMock) CreateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) UpdateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) DeleteItem(item *onepassword.Item, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) DeleteItemByID(itemUUID string, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) DeleteItemByTitle(title string, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) GetFiles(itemQuery string, vaultQuery string) ([]onepassword.File, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) GetFile(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } @@ -105,26 +105,26 @@ func (c *ConnectClientMock) GetFileContent(file *onepassword.File) ([]byte, erro } func (c *ConnectClientMock) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) LoadStructFromItemByUUID(config interface{}, itemUUID string, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) LoadStructFromItemByTitle(config interface{}, itemTitle string, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) LoadStructFromItem(config interface{}, itemQuery string, vaultQuery string) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") } func (c *ConnectClientMock) LoadStruct(config interface{}) error { - // implement when need to mock this method + // Only implement this if mocking is needed panic("implement me") }