Documentation
¶
Overview ¶
Package linker provides a linker to add links between examples
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedExample ¶
type LinkedExample struct { *parser.Example Name string Children []*LinkedExample Parents []*LinkedExample // contains filtered or unexported fields }
LinkedExample represents parser.Example with links
func NewLinkedExample ¶
func NewLinkedExample(root string, e *parser.Example) *LinkedExample
NewLinkedExample creates new linked example based on parser.Example
func (*LinkedExample) Dependencies ¶
func (e *LinkedExample) Dependencies() []string
Dependencies returns unique dependecies for this example
func (*LinkedExample) IsLeaf ¶
func (e *LinkedExample) IsLeaf() bool
IsLeaf returns true if the example have not children and is not using as a dependency
func (*LinkedExample) ParentDependencies ¶
func (e *LinkedExample) ParentDependencies() []string
ParentDependencies returns suites to setup before this example
Click to show internal directories.
Click to hide internal directories.