Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackageAndName ¶
GetPackageAndName gets the suite name and test name given a program counter. Uses runtime.FuncForPC internally to get the full func name of the program counter, then it will split the string by the searching for the latest dot ('.') in the string that separate the full package name from the actual func name. Example 1:
input: github.com/DataDog/dd-sdk-go-testing.TestRun output: suite: github.com/DataDog/dd-sdk-go-testing name: TestRun
Example 2:
input: github.com/DataDog/dd-sdk-go-testing.TestRun.func1 output: suite: github.com/DataDog/dd-sdk-go-testing name: TestRun.func1
func GetProviderTags ¶
GetProviderTags extracts CI information from environment variables.
Types ¶
type LocalGitData ¶
type LocalGitData struct { SourceRoot string RepositoryUrl string Branch string CommitSha string AuthorDate time.Time AuthorName string AuthorEmail string CommitterDate time.Time CommitterName string CommitterEmail string CommitMessage string }
func LocalGetGitData ¶
func LocalGetGitData() (LocalGitData, error)
LocalGetGitData get the git data from the HEAD in Git repository
Click to show internal directories.
Click to hide internal directories.