scanner

package
v0.0.0-...-0dcb022 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeMap

type CodeMap struct {
	Excludes map[string]map[int]bool
	// contains filtered or unexported fields
}

CodeMap scans a number of packages for code to exclude

func New

func New(setup *shared.Setup) *CodeMap

New returns a CoseMap with the provided setup

func (*CodeMap) LoadProgram

func (c *CodeMap) LoadProgram() error

LoadProgram uses the loader package to load and process the source for a number or packages.

func (*CodeMap) ScanPackages

func (c *CodeMap) ScanPackages() error

ScanPackages scans the imported packages

type FileMap

type FileMap struct {
	*PackageMap
	// contains filtered or unexported fields
}

FileMap scans a single file for code to exclude

func (*FileMap) FindExcludes

func (f *FileMap) FindExcludes() error

FindExcludes scans a single file to find code to exclude from coverage files

type PackageMap

type PackageMap struct {
	*CodeMap
	// contains filtered or unexported fields
}

PackageMap scans a single package for code to exclude

func (*PackageMap) ScanPackage

func (p *PackageMap) ScanPackage() error

ScanPackage scans a single package

Jump to

Keyboard shortcuts

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