Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestRegistry ¶
type TestRegistry struct {
// contains filtered or unexported fields
}
TestRegistry manages template tests
func NewTestRegistry ¶
func NewTestRegistry() *TestRegistry
NewTestRegistry creates a new test registry
func (*TestRegistry) Apply ¶
func (r *TestRegistry) Apply(name string, value interface{}, args ...interface{}) (bool, error)
Apply applies a test to a value
func (*TestRegistry) Get ¶
func (r *TestRegistry) Get(name string) (TestFunc, bool)
Get retrieves a test function by name
func (*TestRegistry) List ¶
func (r *TestRegistry) List() []string
List returns all registered test names
Click to show internal directories.
Click to hide internal directories.