Documentation ¶
Index ¶
- func CreateOutputDirectories(customerDirectory, notifierDirectory, symbolsDirectory string) (err error)
- func GetModuleName(inputDir string) (moduleName string, err error)
- func IsGoAvailable() bool
- func ParseExclusionsFile(path string, inputDirectory string) (exclusions map[string]bool, err error)
- type CommandArgs
- type CommandFiles
- func (cfx *CommandFiles) CreateNotifierModule()
- func (cfx *CommandFiles) CreateSymbolTableWriter(filesHash string) (symWriter *instrumentor.SymbolTable)
- func (cfx *CommandFiles) FindSourceCode() (paths []string, numSkipped int, err error)
- func (cfx *CommandFiles) GetNotifierDirectory() string
- func (cfx *CommandFiles) GetSourceFiles() (sourceFiles []string, err error)
- func (cfx *CommandFiles) NewCoverageInstrumentor() *instrumentor.CoverageInstrumentor
- func (cfx *CommandFiles) ParseExclusionsFile() (err error)
- func (cfx *CommandFiles) UsingSymbols() string
- func (cfx *CommandFiles) WrapUp()
- func (cfx *CommandFiles) WriteInstrumentedOutput(fileName string, instrumentedSource string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOutputDirectories ¶
func GetModuleName ¶
func IsGoAvailable ¶
func IsGoAvailable() bool
func ParseExclusionsFile ¶
func ParseExclusionsFile(path string, inputDirectory string) (exclusions map[string]bool, err error)
ParseExclusionsFile reads the exclusions file, skipping lines beginning with #. Golang does not have a set class, so, rather than waste space copy-pastaing code from the interwebs, we'll just return a map.
Types ¶
type CommandArgs ¶
type CommandArgs struct { VersionText string ShowVersion bool InvalidArgs bool // contains filtered or unexported fields }
Capitalized struct items are accessed outside this file
func ParseArgs ¶
func ParseArgs(versionText string) *CommandArgs
func (*CommandArgs) NewCommandFiles ¶
func (ca *CommandArgs) NewCommandFiles() (cfx *CommandFiles, err error)
type CommandFiles ¶
type CommandFiles struct {
// contains filtered or unexported fields
}
Capitalized struct items are accessed outside this file
func (*CommandFiles) CreateNotifierModule ¶ added in v0.2.10
func (cfx *CommandFiles) CreateNotifierModule()
func (*CommandFiles) CreateSymbolTableWriter ¶
func (cfx *CommandFiles) CreateSymbolTableWriter(filesHash string) (symWriter *instrumentor.SymbolTable)
func (*CommandFiles) FindSourceCode ¶
func (cfx *CommandFiles) FindSourceCode() (paths []string, numSkipped int, err error)
FindSourceCode scans an input directory recursively for .go files, skipping any files or directories specified in exclusions.
func (*CommandFiles) GetNotifierDirectory ¶ added in v0.2.10
func (cfx *CommandFiles) GetNotifierDirectory() string
func (*CommandFiles) GetSourceFiles ¶
func (cfx *CommandFiles) GetSourceFiles() (sourceFiles []string, err error)
func (*CommandFiles) NewCoverageInstrumentor ¶
func (cfx *CommandFiles) NewCoverageInstrumentor() *instrumentor.CoverageInstrumentor
func (*CommandFiles) ParseExclusionsFile ¶
func (cfx *CommandFiles) ParseExclusionsFile() (err error)
func (*CommandFiles) UsingSymbols ¶
func (cfx *CommandFiles) UsingSymbols() string
func (*CommandFiles) WrapUp ¶
func (cfx *CommandFiles) WrapUp()
func (*CommandFiles) WriteInstrumentedOutput ¶
func (cfx *CommandFiles) WriteInstrumentedOutput(fileName string, instrumentedSource string, cI *instrumentor.CoverageInstrumentor)
Click to show internal directories.
Click to hide internal directories.