Documentation ¶
Index ¶
- func CreateNpmTest(t *testing.T, testdataPath, projectDirName string, withOsInPath bool, ...) (tmpProjectPath string, cleanup func())
- func CreateTempDirWithCallbackAndAssert(t *testing.T) (string, func())
- func CreateTestProject(t *testing.T, projectPath string) (tmpProjectPath string, cleanup func())
- func GetBuildInfo(t *testing.T, filePath string) entities.BuildInfo
- func PrintBuildInfoMismatch(t *testing.T, expected, actual []entities.Module)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNpmTest ¶
func CreateNpmTest(t *testing.T, testdataPath, projectDirName string, withOsInPath bool, version *version.Version) (tmpProjectPath string, cleanup func())
Return the project path based on 'projectDir'. withOsInPath - some tests have individual cases for specific os, if true, return the tests for that belong to the current running os. testdataPath - abs path to testdata dir. projectDirName - name of the project's directory.
func CreateTestProject ¶
Copy a project from path to temp dir. projectPath - Local path to a project Return the copied project location and a cleanup function to delete it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.