Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitBlob = func(path string, commit *object.Commit) (string, error) { if commit == nil { blob, err := fallbackBlob(path) if err != nil { return "", errors.WithStack(err) } return blob, nil } logrus.Debugf("getting git blob_id for source file %s", path) file, err := commit.File(path) if err != nil { logrus.Errorf("failed to find file %s\n%s", path, err) return "", errors.WithStack(err) } blob := strings.TrimSpace(file.Hash.String()) return blob, nil }
Functions ¶
Types ¶
type Environment ¶
Environment represent the current testing environment
func New ¶
func New() (Environment, error)
New environment. If there are problems loading parts of the environment an error will be returned. Validation errors are not considered an "error" here, but should be checked further down the chain, when validation of the environment is required.
func (Environment) MarshalJSON ¶
func (e Environment) MarshalJSON() ([]byte, error)
func (Environment) String ¶
func (e Environment) String() string
Click to show internal directories.
Click to hide internal directories.