cmd

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOutputDirectories

func CreateOutputDirectories(customerDirectory, notifierDirectory, symbolsDirectory string) (err error)

func GetModuleName

func GetModuleName(inputDir string) (moduleName string, err error)

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)

Jump to

Keyboard shortcuts

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