Documentation ¶
Overview ¶
*
- Pesticide are a package to help you to test your functions on a template
- engine. It provides a set of test cases that you can use to test your
- functions.
- More pesticide for less bugs.
Index ¶
- func RunMustTestCases(t *testing.T, registry sprout.Registry, tc []MustTestCase)
- func RunRegexpTestCases(t *testing.T, registry sprout.Registry, tcs []RegexpTestCase)
- func RunTestCases(t *testing.T, registry sprout.Registry, tc []TestCase)
- func TestTemplate(t *testing.T, registry sprout.Registry, tmplString string, data any) (string, error)
- type MustTestCase
- type RegexpTestCase
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMustTestCases ¶
func RunMustTestCases(t *testing.T, registry sprout.Registry, tc []MustTestCase)
func RunRegexpTestCases ¶
func RunRegexpTestCases(t *testing.T, registry sprout.Registry, tcs []RegexpTestCase)
Types ¶
type MustTestCase ¶
type RegexpTestCase ¶
Click to show internal directories.
Click to hide internal directories.