Documentation ¶
Index ¶
- func Run(t *testing.T, boxFunction BoxFunction, fileSlice []File)
- type BoxFunction
- type Dict
- type FailStatus
- type File
- type Nodule
- func (n Nodule) Errorf(format string, a ...interface{}) error
- func (n Nodule) GetChildren() (children []focustree.Node)
- func (n Nodule) GetFlag() focustree.FlagType
- func (n *Nodule) GetLocation() string
- func (n *Nodule) InitializeTree() (err error)
- func (n Nodule) IsLeaf() bool
- func (n *Nodule) NewResolveDataMatrixIterator() func() Dict
- func (n *Nodule) Populate(dataMatrix orderedstringmap.OSM) (err error)
- func (n Nodule) Warning(info string)
- type NoduleRoot
- type S
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoxFunction ¶
BoxFunction is the type that user-defined functions must implement in the testbox
type FailStatus ¶
type FailStatus int
FailStatus specifies the kind of failure a slab produced, if any
const ( Pristine FailStatus = iota Failed Aborted Panicked )
type File ¶
File represents a file by its path and content
func ReadLocalFile ¶
ReadLocalFile reads a file from the file system and returns a specimen.File
func VirtualFile ¶
VirtualFile creates a specimen.File from scratch
func VirtualFileDedent ¶
VirtualFileDedent dedents the given content and creates a specimen.File
type Nodule ¶
type Nodule struct { FilePath string YamlNode *yaml.Node Flag focustree.FlagType HasContentKey bool Children []Nodule DataMatrix orderedstringmap.OSM }
Nodule is a node inside a file
func NewNoduleFromFile ¶
func (Nodule) GetChildren ¶
func (*Nodule) GetLocation ¶
func (*Nodule) InitializeTree ¶
The initialization creates all the nodules corresponding to the mapping nodes of the yaml tree, except for the PENDING nodes. It fills the fields Flag, HasContentKey and Children. **It expects YamlNode and FilePath to be already set**, and it sets YamlNode and FilePath for its children.
func (*Nodule) NewResolveDataMatrixIterator ¶
type NoduleRoot ¶
type NoduleRoot []Nodule
NoduleRoot is used to gather the files for exploration by the focustree package
func (NoduleRoot) GetChildren ¶
func (t NoduleRoot) GetChildren() (children []focustree.Node)
func (NoduleRoot) GetFlag ¶
func (NoduleRoot) GetFlag() focustree.FlagType
func (NoduleRoot) IsLeaf ¶
func (NoduleRoot) IsLeaf() bool
func (NoduleRoot) Warning ¶
func (NoduleRoot) Warning(info string)