watch

package
Version: v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 9 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveFolders

func ActiveFolders(folders messaging.Folders) messaging.Folders

func AttachProfiles

func AttachProfiles(folders messaging.Folders, items []*FileSystemItem)

func CreateFolders

func CreateFolders(items []*FileSystemItem) messaging.Folders

func LimitDepth

func LimitDepth(folders messaging.Folders, depth int)

func MarkIgnored

func MarkIgnored(folders messaging.Folders, ignored map[string]struct{})

func ParseProfile

func ParseProfile(profile string) (isDisabled bool, tags, arguments []string)

func ReadContents

func ReadContents(path string) string

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 Sum

func Sum(folders messaging.Folders, items []*FileSystemItem) int64

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)

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(rootFolder string, folderDepth int, nap time.Duration,
	input chan messaging.WatcherCommand, output chan messaging.Folders, watchSuffixes string, excludedDirs []string) *Watcher

func (*Watcher) Listen

func (this *Watcher) Listen()

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL