Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRelativePathFromGitRoot ¶
GetRelativePathFromGitRoot returns the relative path of a directory within the git root directory. For example, if git root is "/aa/bb/cc/" and the directory is "/aa/bb/cc/dd/ee", it will return "dd/ee".
Types ¶
type Config ¶
type Config struct {
SmartTests []string `yaml:"smart_tests"`
}
Config represents the .signadot/config.yaml file contents
func LoadConfig ¶
LoadConfig reads the .signadot/config.yaml file from the git repository root
type GitRepo ¶
func FindGitRepo ¶
type LabelsCache ¶
func NewLabelsCache ¶
func NewLabelsCache(rootPath string) (LabelsCache, error)
type TestFile ¶
type TestFile struct {
Name string // Test name
Path string // Full path relative to base directory
Reader io.Reader // if Path is empty, may be a Reader
Labels map[string]string // Labels from all parent directories
}
TestFile represents a test file found in the tests directory
type TestFinder ¶
type TestFinder struct {
// contains filtered or unexported fields
}
func NewTestFinder ¶
func NewTestFinder(inputPath string) (*TestFinder, error)
func (*TestFinder) FindTestFiles ¶
func (tf *TestFinder) FindTestFiles() ([]TestFile, error)
FindTestFiles finds all test files in the tests directories
func (*TestFinder) GetGitRepo ¶
func (tf *TestFinder) GetGitRepo() *GitRepo
Click to show internal directories.
Click to hide internal directories.