Documentation ¶
Index ¶
- Variables
- type File
- type FileFilter
- type FileReceiver
- type Files
- type FilesProvider
- type Method
- func (method *Method) AssertAcceptanceTestNamedCorrectly(t *testing.T)
- func (method *Method) AssertIntegrationTestNamedCorrectly(t *testing.T)
- func (method *Method) AssertNameDoesNotMatch(t *testing.T, regex *regexp.Regexp)
- func (method *Method) AssertNameMatches(t *testing.T, regex *regexp.Regexp)
- func (method *Method) AssertTestNamedCorrectly(t *testing.T)
- func (method *Method) FileName() string
- func (method *Method) Name() string
- type MethodReceiver
- type Methods
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AcceptanceTestFileRegex = regexp.MustCompile("^.*_acceptance_test.go$") AcceptanceTestNameRegex = regexp.MustCompile("^TestAcc_.+$") IntegrationTestFileRegex = regexp.MustCompile("^.*_integration_test.go$") IntegrationTestNameRegex = regexp.MustCompile("^TestInt_.+$") TestFileRegex = regexp.MustCompile("^.*_test.go$") TestNameRegex = regexp.MustCompile("^Test.*$") )
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFileFromPath ¶
func (*File) AssertHasPackage ¶
func (*File) ExportedMethods ¶
func (*File) PackageName ¶
type FileFilter ¶
func FileNameFilterProvider ¶
func FileNameFilterProvider(text string) FileFilter
func FileNameFilterWithExclusionsProvider ¶
func FileNameFilterWithExclusionsProvider(regex *regexp.Regexp, exclusionRegex ...*regexp.Regexp) FileFilter
func FileNameRegexFilterProvider ¶
func FileNameRegexFilterProvider(regex *regexp.Regexp) FileFilter
func PackageFilterProvider ¶
func PackageFilterProvider(packageName string) FileFilter
type FileReceiver ¶
type FileReceiver = func(*File)
type Files ¶
type Files []File
func (Files) All ¶
func (files Files) All(receiver FileReceiver)
func (Files) Filter ¶
func (files Files) Filter(filter FileFilter) Files
type FilesProvider ¶
type FilesProvider interface { AllFiles() Files Files(filter FileFilter) Files }
func Directory ¶
func Directory(path string) FilesProvider
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (*Method) AssertAcceptanceTestNamedCorrectly ¶
func (*Method) AssertIntegrationTestNamedCorrectly ¶
func (*Method) AssertNameDoesNotMatch ¶
func (*Method) AssertNameMatches ¶
func (*Method) AssertTestNamedCorrectly ¶
type MethodReceiver ¶
type MethodReceiver = func(method *Method)
Click to show internal directories.
Click to hide internal directories.