Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct {
Palette string
Files []linttest.TestFile
Expect []string
// contains filtered or unexported fields
}
Suite is a configurable test runner for linter.
Use NewSuite to create usable instance.
func (*Suite) AddFile ¶
AddFile adds a file to a suite file list. File gets an auto-generated name. If custom name is important, use AddNamedFile.
func (*Suite) AddNamedFile ¶
AddNamedFile adds a file with a specific name to a suite file list.
func (*Suite) Match ¶
Match tries to match every report against Expect list of s.
If expect slice is nil or empty, only nil (or empty) reports slice would match it.
func (*Suite) RunAndMatch ¶
func (s *Suite) RunAndMatch()
RunAndMatch calls Match with the results of RunLinter.
This is a recommended way to use the Suite, but if reports slice is needed, one can use RunLinter directly.
Click to show internal directories.
Click to hide internal directories.