Documentation
¶
Index ¶
- type AzureClient
- func (_m *AzureClient) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
- func (_m *AzureClient) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
- func (_m *AzureClient) Exists(ctx context.Context, path string) (bool, error)
- func (_m *AzureClient) Find(ctx context.Context, path string) (io.ReadCloser, error)
- func (_m *AzureClient) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)
- func (_m *AzureClient) GetSASURL(ctx context.Context, containerPath string, containerType core.ContainerType) (string, error)
- type CacheStore
- func (_m *CacheStore) CacheWorkspace(ctx context.Context, subModule string) error
- func (_m *CacheStore) Download(ctx context.Context, cacheKey string) error
- func (_m *CacheStore) ExtractWorkspace(ctx context.Context, subModule string) error
- func (_m *CacheStore) Upload(ctx context.Context, cacheKey string, itemsToCompress ...string) error
- type ExecutionManager
- func (_m *ExecutionManager) ExecuteInternalCommands(ctx context.Context, commandType core.CommandType, commands []string, ...) error
- func (_m *ExecutionManager) ExecuteUserCommands(ctx context.Context, commandType core.CommandType, payload *core.Payload, ...) error
- func (_m *ExecutionManager) ExecuteUserCommandsV2(ctx context.Context, commandType core.CommandType, payload *core.Payload, ...) error
- func (_m *ExecutionManager) GetEnvVariables(envMap map[string]string, secretData map[string]string) ([]string, error)
- func (_m *ExecutionManager) StoreCommandLogs(ctx context.Context, blobPath string, reader io.Reader) <-chan error
- type Reader
- type SecretParser
- func (_m *SecretParser) Expired(token *core.Oauth) bool
- func (_m *SecretParser) GetOauthSecret(filepath string) (*core.Oauth, error)
- func (_m *SecretParser) GetRepoSecret(_a0 string) (map[string]string, error)
- func (_m *SecretParser) SubstituteSecret(command string, secretData map[string]string) (string, error)
- type TASConfigManager
- func (_m *TASConfigManager) GetVersion(path string) (int, error)
- func (_m *TASConfigManager) LoadAndValidateV1(ctx context.Context, path string, eventType core.EventType, ...) (*core.TASConfig, error)
- func (_m *TASConfigManager) LoadAndValidateV2(ctx context.Context, path string, eventType core.EventType, ...) (*core.TASConfigV2, error)
- type TestDiscoveryService
- func (_m *TestDiscoveryService) Discover(ctx context.Context, tasConfig *core.TASConfig, payload *core.Payload, ...) error
- func (_m *TestDiscoveryService) DiscoverV2(ctx context.Context, subModule *core.SubModule, payload *core.Payload, ...) error
- func (_m *TestDiscoveryService) UpdateSubmoduleList(ctx context.Context, buildID string, totalSubmodule int) error
- type TestExecutionService
- func (_m *TestExecutionService) RunV1(ctx context.Context, tasConfig *core.TASConfig, payload *core.Payload, ...) (*core.ExecutionResults, error)
- func (_m *TestExecutionService) RunV2(ctx context.Context, tasConfig *core.TASConfigV2, subModule *core.SubModule, ...) (*core.ExecutionResults, error)
- func (_m *TestExecutionService) SendResults(ctx context.Context, payload *core.ExecutionResults) (*core.TestReportResponsePayload, error)
- type ZstdCompressor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClient ¶
AzureClient is an autogenerated mock type for the AzureClient type
func (*AzureClient) Create ¶
func (_m *AzureClient) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
Create provides a mock function with given fields: ctx, path, reader, mimeType
func (*AzureClient) CreateUsingSASURL ¶
func (_m *AzureClient) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
CreateUsingSASURL provides a mock function with given fields: ctx, sasURL, reader, mimeType
func (*AzureClient) Find ¶
func (_m *AzureClient) Find(ctx context.Context, path string) (io.ReadCloser, error)
Find provides a mock function with given fields: ctx, path
func (*AzureClient) FindUsingSASUrl ¶
func (_m *AzureClient) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)
FindUsingSASUrl provides a mock function with given fields: ctx, sasURL
func (*AzureClient) GetSASURL ¶
func (_m *AzureClient) GetSASURL(ctx context.Context, containerPath string, containerType core.ContainerType) (string, error)
GetSASURL provides a mock function with given fields: ctx, containerPath, containerType
type CacheStore ¶ added in v0.5.0
CacheStore is an autogenerated mock type for the CacheStore type
func NewCacheStore ¶ added in v0.5.0
func NewCacheStore(t testing.TB) *CacheStore
NewCacheStore creates a new instance of CacheStore. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheStore) CacheWorkspace ¶ added in v0.5.0
func (_m *CacheStore) CacheWorkspace(ctx context.Context, subModule string) error
CacheWorkspace provides a mock function with given fields: ctx, subModule
func (*CacheStore) Download ¶ added in v0.5.0
func (_m *CacheStore) Download(ctx context.Context, cacheKey string) error
Download provides a mock function with given fields: ctx, cacheKey
func (*CacheStore) ExtractWorkspace ¶ added in v0.5.0
func (_m *CacheStore) ExtractWorkspace(ctx context.Context, subModule string) error
ExtractWorkspace provides a mock function with given fields: ctx, subModule
type ExecutionManager ¶
ExecutionManager is an autogenerated mock type for the ExecutionManager type
func NewExecutionManager ¶ added in v0.5.0
func NewExecutionManager(t testing.TB) *ExecutionManager
NewExecutionManager creates a new instance of ExecutionManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecutionManager) ExecuteInternalCommands ¶
func (_m *ExecutionManager) ExecuteInternalCommands(ctx context.Context, commandType core.CommandType, commands []string, cwd string, envMap map[string]string, secretData map[string]string) error
ExecuteInternalCommands provides a mock function with given fields: ctx, commandType, commands, cwd, envMap, secretData
func (*ExecutionManager) ExecuteUserCommands ¶
func (_m *ExecutionManager) ExecuteUserCommands(ctx context.Context, commandType core.CommandType, payload *core.Payload, runConfig *core.Run, secretData map[string]string, cwd string) error
ExecuteUserCommands provides a mock function with given fields: ctx, commandType, payload, runConfig, secretData, cwd
func (*ExecutionManager) ExecuteUserCommandsV2 ¶ added in v0.5.0
func (_m *ExecutionManager) ExecuteUserCommandsV2(ctx context.Context, commandType core.CommandType, payload *core.Payload, runConfig *core.Run, secretData map[string]string, cwd string, subModule string, buffer *bytes.Buffer) error
ExecuteUserCommandsV2 provides a mock function with given fields: ctx, commandType, payload, runConfig, secretData, cwd, subModule, buffer
func (*ExecutionManager) GetEnvVariables ¶
func (_m *ExecutionManager) GetEnvVariables(envMap map[string]string, secretData map[string]string) ([]string, error)
GetEnvVariables provides a mock function with given fields: envMap, secretData
func (*ExecutionManager) StoreCommandLogs ¶
func (_m *ExecutionManager) StoreCommandLogs(ctx context.Context, blobPath string, reader io.Reader) <-chan error
StoreCommandLogs provides a mock function with given fields: ctx, blobPath, reader
type SecretParser ¶
SecretParser is an autogenerated mock type for the SecretParser type
func (*SecretParser) Expired ¶
func (_m *SecretParser) Expired(token *core.Oauth) bool
Expired provides a mock function with given fields: token
func (*SecretParser) GetOauthSecret ¶
func (_m *SecretParser) GetOauthSecret(filepath string) (*core.Oauth, error)
GetOauthSecret provides a mock function with given fields: filepath
func (*SecretParser) GetRepoSecret ¶
func (_m *SecretParser) GetRepoSecret(_a0 string) (map[string]string, error)
GetRepoSecret provides a mock function with given fields: _a0
func (*SecretParser) SubstituteSecret ¶
func (_m *SecretParser) SubstituteSecret(command string, secretData map[string]string) (string, error)
SubstituteSecret provides a mock function with given fields: command, secretData
type TASConfigManager ¶
TASConfigManager is an autogenerated mock type for the TASConfigManager type
func NewTASConfigManager ¶ added in v0.5.0
func NewTASConfigManager(t testing.TB) *TASConfigManager
NewTASConfigManager creates a new instance of TASConfigManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TASConfigManager) GetVersion ¶ added in v0.5.0
func (_m *TASConfigManager) GetVersion(path string) (int, error)
GetVersion provides a mock function with given fields: path
func (*TASConfigManager) LoadAndValidateV1 ¶ added in v0.5.0
func (_m *TASConfigManager) LoadAndValidateV1(ctx context.Context, path string, eventType core.EventType, licenseTier core.Tier) (*core.TASConfig, error)
LoadAndValidateV1 provides a mock function with given fields: ctx, path, eventType, licenseTier
func (*TASConfigManager) LoadAndValidateV2 ¶ added in v0.5.0
func (_m *TASConfigManager) LoadAndValidateV2(ctx context.Context, path string, eventType core.EventType, licenseTier core.Tier) (*core.TASConfigV2, error)
LoadAndValidateV2 provides a mock function with given fields: ctx, path, eventType, licenseTier
type TestDiscoveryService ¶ added in v0.5.0
TestDiscoveryService is an autogenerated mock type for the TestDiscoveryService type
func NewTestDiscoveryService ¶ added in v0.5.0
func NewTestDiscoveryService(t testing.TB) *TestDiscoveryService
NewTestDiscoveryService creates a new instance of TestDiscoveryService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestDiscoveryService) Discover ¶ added in v0.5.0
func (_m *TestDiscoveryService) Discover(ctx context.Context, tasConfig *core.TASConfig, payload *core.Payload, secretData map[string]string, diff map[string]int, diffExists bool) error
Discover provides a mock function with given fields: ctx, tasConfig, payload, secretData, diff, diffExists
func (*TestDiscoveryService) DiscoverV2 ¶ added in v0.5.0
func (_m *TestDiscoveryService) DiscoverV2(ctx context.Context, subModule *core.SubModule, payload *core.Payload, secretData map[string]string, tasConfig *core.TASConfigV2, diff map[string]int, diffExists bool) error
DiscoverV2 provides a mock function with given fields: ctx, subModule, payload, secretData, tasConfig, diff, diffExists
func (*TestDiscoveryService) UpdateSubmoduleList ¶ added in v0.5.0
func (_m *TestDiscoveryService) UpdateSubmoduleList(ctx context.Context, buildID string, totalSubmodule int) error
UpdateSubmoduleList provides a mock function with given fields: ctx, buildID, totalSubmodule
type TestExecutionService ¶ added in v0.5.0
TestExecutionService is an autogenerated mock type for the TestExecutionService type
func NewTestExecutionService ¶ added in v0.5.0
func NewTestExecutionService(t testing.TB) *TestExecutionService
NewTestExecutionService creates a new instance of TestExecutionService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestExecutionService) RunV1 ¶ added in v0.5.0
func (_m *TestExecutionService) RunV1(ctx context.Context, tasConfig *core.TASConfig, payload *core.Payload, coverageDirectory string, secretMap map[string]string) (*core.ExecutionResults, error)
RunV1 provides a mock function with given fields: ctx, tasConfig, payload, coverageDirectory, secretMap
func (*TestExecutionService) RunV2 ¶ added in v0.5.0
func (_m *TestExecutionService) RunV2(ctx context.Context, tasConfig *core.TASConfigV2, subModule *core.SubModule, payload *core.Payload, coverageDir string, envMap map[string]string, target []string, secretData map[string]string) (*core.ExecutionResults, error)
RunV2 provides a mock function with given fields: ctx, tasConfig, subModule, payload, coverageDir, envMap, target, secretData
func (*TestExecutionService) SendResults ¶ added in v0.5.0
func (_m *TestExecutionService) SendResults(ctx context.Context, payload *core.ExecutionResults) (*core.TestReportResponsePayload, error)
SendResults provides a mock function with given fields: ctx, payload
type ZstdCompressor ¶
ZstdCompressor is an autogenerated mock type for the ZstdCompressor type
func (*ZstdCompressor) Compress ¶
func (_m *ZstdCompressor) Compress(ctx context.Context, compressedFileName string, preservePath bool, workingDirectory string, filesToCompress ...string) error
Compress provides a mock function with given fields: ctx, compressedFileName, preservePath, workingDirectory, filesToCompress
func (*ZstdCompressor) Decompress ¶
func (_m *ZstdCompressor) Decompress(ctx context.Context, filePath string, preservePath bool, workingDirectory string) error
Decompress provides a mock function with given fields: ctx, filePath, preservePath, workingDirectory