importing

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesOfArgs

func FilesOfArgs(args []string, opts Options) ([]string, error)

func ParseAndTypeCheckFile added in v0.5.1

func ParseAndTypeCheckFile(filename string) (*ast.File, *packages.Package, error)

func ParseFile added in v0.5.1

func ParseFile(filename string) (*ast.File, *token.FileSet, error)

ParseFile parses the content of the given file and returns the corresponding ast.File node and its file set for positional information. If a fatal error is encountered the error return argument is not nil.

func Skips added in v0.5.1

func Skips(fset *token.FileSet, src *ast.File) map[int]struct{}

Skips checks all comments and finds `//nomutesting` directives.

Types

type Options added in v0.3.0

type Options struct {
	SkipFileWithoutTest  bool
	SkipFileWithBuildTag bool
	GitMainBranch        string
	ExcludeDirs          []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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