Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigurationFilename represents configuration filename ConfigurationFilename = "ditto.config.json" // DefaultTestDir is default test directory DefaultTestDir = "ditto-test" // DefaultTestDir is default test directory DefaultLogDir = "ditto-log" )
View Source
const ( ErrFileOpen = "[Reader] Failed to open file %s" ErrFileParse = "[Reader] Failed to parse file %s" ErrFileInvalid = "[Reader] Invalid file format for file %s" ErrDirFailed = "[MkDir] Failed to create directory: %s" )
Dynamic error templates
View Source
const ( // PassEmoji is the emoji to use when a test passes PassEmoji = "✅" // PassText is the text to show when a test passes PassText = "PASS" // FailEmoji is the emoji to use when a test fails FailEmoji = "❌" // FailText is the text to show when a test passes FailText = "FAIL" )
View Source
const ( // TestTemplate is a template to use when automatically creating a new test file TestTemplate = `` /* 458-byte string literal not displayed */ DefaultTestName = "SampledDittoTest" )
View Source
const (
// FilePerms is used when writing any files
FilePerms = 0777
)
Variables ¶
View Source
var ( ErrNoDir = errors.New("[Reader] Tests directory does not exist") ErrListDir = errors.New("[Reader] Failed to list file directory") )
Test file errors
View Source
var ( ErrCreateRequest = errors.New("[Fetcher] Failed to create new request") ErrReadResponse = errors.New("[Fetcher] Failed to read response") )
Fetcher errors
View Source
var ( ErrNoConfig = errors.New("[Configuration] Missing config file. Using default configuration.") ErrReadConfig = errors.New("[Configuration] Failed to read config file. Ignoring configuration file.") ErrDecodeConfig = errors.New("[Configuration] Failed to decode config file. Ignoring configuration file.") ErrInvalidConfig = errors.New("[Configuration] Invalid configuration file. Ignoring configuration file.") )
Config errors
View Source
var (
ErrDirExist = errors.New("[MkDir] Failed to create directory. Directory already exists.")
)
Utils errors
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.