Documentation ¶
Index ¶
- func AssertDosFile(t *testing.T, file []byte)
- func AssertModuleExists(t *testing.T, modules []module.Module, modType pkg.Type, ...)
- func AssertPackageImport(t *testing.T, imports pkg.Imports, name, revision string)
- func AssertUnixFile(t *testing.T, file []byte)
- func PackageInTransitiveGraph(packages map[pkg.ID]pkg.Package, name, revision string) pkg.Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDosFile ¶
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 ¶
AssertPackageImport searches a list of imports (typically from pkg.Package.Imports) for a package and asserts on its existence.
func AssertUnixFile ¶
AssertUnixFile parses the file and ensures that every line ending is formatted for Unix/Linux operating systems with only line feed ("\n").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.