Documentation ¶
Index ¶
- func ActiveFolders(folders messaging.Folders) messaging.Folders
- func AttachProfiles(folders messaging.Folders, items []*FileSystemItem)
- func CreateFolders(items []*FileSystemItem) messaging.Folders
- func LimitDepth(folders messaging.Folders, depth int)
- func MarkIgnored(folders messaging.Folders, ignored map[string]struct{})
- func ParseProfile(profile string) (isDisabled bool, tags, arguments []string)
- func ReadContents(path string) string
- func Sum(folders messaging.Folders, items []*FileSystemItem) int64
- func YieldFileSystemItems(root string, excludedDirs []string) chan *FileSystemItem
- type FileSystemItem
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachProfiles ¶
func AttachProfiles(folders messaging.Folders, items []*FileSystemItem)
func CreateFolders ¶
func CreateFolders(items []*FileSystemItem) messaging.Folders
func LimitDepth ¶
func MarkIgnored ¶
func ParseProfile ¶
func ReadContents ¶
ReadContents reads files wholesale. This function is only called on files that end in '.goconvey'. These files should be very small, probably not ever more than a few hundred bytes. The ignored errors are ok because in the event of an IO error all that need be returned is an empty string.
func YieldFileSystemItems ¶
func YieldFileSystemItems(root string, excludedDirs []string) chan *FileSystemItem
Types ¶
type FileSystemItem ¶
type FileSystemItem struct { Root string Path string Name string Size int64 Modified int64 IsFolder bool ProfileDisabled bool ProfileTags []string ProfileArguments []string }
func Categorize ¶
func Categorize(items chan *FileSystemItem, root string, watchSuffixes []string) (folders, profiles, goFiles []*FileSystemItem)
Directories ¶
Path | Synopsis |
---|---|
This file's only purpose is to provide a realistic environment from which to run integration tests against the Watcher.
|
This file's only purpose is to provide a realistic environment from which to run integration tests against the Watcher. |
sub
This file's only purpose is to provide a realistic environment from which to run integration tests against the Watcher.
|
This file's only purpose is to provide a realistic environment from which to run integration tests against the Watcher. |
Click to show internal directories.
Click to hide internal directories.