Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitBlob = func(path string, commit *object.Commit) (string, error) { if commit != nil { file, err := commit.File(path) if err == nil { logrus.Debugf("getting git blob_id for source file %s", path) blob := strings.TrimSpace(file.Hash.String()) return blob, nil } } blob, err := fallbackBlob(path) if err != nil { return "", errors.WithStack(err) } 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.