Documentation ¶
Overview ¶
Package test implements unit test feature.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarotoTest ¶
type MarotoTest struct {
// contains filtered or unexported fields
}
MarotoTest is the unit test instance.
func (*MarotoTest) Assert ¶
func (m *MarotoTest) Assert(structure *node.Node[core.Structure]) *MarotoTest
Assert validates if the structure is the same as defined by Equals method.
func (*MarotoTest) Equals ¶
func (m *MarotoTest) Equals(file string) *MarotoTest
Equals defines which file will be loaded to do the comparison.
func (*MarotoTest) Save ¶
func (m *MarotoTest) Save(file string) *MarotoTest
Save is an auxiliary method to update the file to be asserted.
Click to show internal directories.
Click to hide internal directories.