Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApplicationConfigPath = "/testutils/testdata/sample_config.json" // AplicationConfigPath points to dummy config file in json format for NucleusConfig TaskPayloadPath = "/testutils/testdata/taskPayload.json" // TaskPayloadPath points to json file containing dummy TaskPayload PayloadPath = "/testutils/testdata/payload.json" // PayloadPath points to json file containing dummy PayloadPath GitlabCommitDiff = "/testutils/testdata/gitlabCommitDiff.json" // GitLabCommitDiff points to json file containing dummy GitLabCommitDiff )
Various constant defined for to obtain dummy data for tests
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig() (*config.NucleusConfig, error)
GetConfig returns a dummy NucleusConfig using the json file pointed by ApplicationConfigPath
func GetGitlabCommitDiff ¶
GetGitlabCommitDiff returns a dummy GitlabCommitDiff as slice of byte data.
func GetPayload ¶
GetPayload returns a dummy core.Payload using the json file pointed by PayloadPath.
func GetTaskPayload ¶
func GetTaskPayload() (*core.TaskPayload, error)
GetTaskPayload returns a dummy core.TaskPayload using the json file pointed by TaskPayloadPath
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.