Documentation
¶
Overview ¶
Package assert provides a set of functions to help with testing of this project.
Index ¶
- func Equal(t *testing.T, expected, got any)
- func Error(t *testing.T, err error)
- func False(t *testing.T, got bool)
- func Nil(t *testing.T, got any)
- func NoError(t *testing.T, err error)
- func NotEqual(t *testing.T, expected, got any)
- func NotNil(t *testing.T, got any)
- func Render(t *testing.T, expected string, node Node)
- func RenderNoSpaces(t *testing.T, expected string, node Node)
- func True(t *testing.T, got bool)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶ added in v0.2.0
Render renders a NodX node with all the Render methods and asserts that the output is equal to the expected string.
func RenderNoSpaces ¶ added in v0.2.0
RenderNoSpaces is the same as Render, but it removes all the white spaces and similar characters from the expected and the output to make the test more readable without the need to remove spaces manually when writing the test.
Types ¶
Click to show internal directories.
Click to hide internal directories.