helpers

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDosFile

func AssertDosFile(t *testing.T, file []byte)

AssertDosFile parses the file and ensures that every line ending is formatted for DOS operating systems with a carriage return and line feed ("\r\n").

func AssertModuleExists added in v1.0.1

func AssertModuleExists(t *testing.T, modules []module.Module, modType pkg.Type, name, directory, target string)

AssertModuleExists searches a list of modules and determines if the specified module exists. This is most often used for testing Discover methods.

func AssertPackageImport

func AssertPackageImport(t *testing.T, imports pkg.Imports, name, revision string)

AssertPackageImport searches a list of imports (typically from pkg.Package.Imports) for a package and asserts on its existence.

func AssertUnixFile

func AssertUnixFile(t *testing.T, file []byte)

AssertUnixFile parses the file and ensures that every line ending is formatted for Unix/Linux operating systems with only line feed ("\n").

func PackageInTransitiveGraph

func PackageInTransitiveGraph(packages map[pkg.ID]pkg.Package, name, revision string) pkg.Package

PackageInTransitiveGraph searches a map (typically from Graph.Deps.Transitive) for a package and returns it if it exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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