Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TemplateTestSuite ¶
TemplateTestSuite is a basic testing suite for all templates test with some generic helper functions
func (*TemplateTestSuite) Init ¶
func (s *TemplateTestSuite) Init(templateKey string)
Init initializes the test suite with a template
func (*TemplateTestSuite) Validate ¶
func (s *TemplateTestSuite) Validate( ctx lintcontext.LintContext, cases []TestCase, )
Validate validates the given test cases against the LintContext passed in.
type TestCase ¶
type TestCase struct { Param interface{} Diagnostics map[string][]diagnostic.Diagnostic ExpectInstantiationError bool }
TestCase represents a single test case which can be verified under a LintContext
Click to show internal directories.
Click to hide internal directories.