fstestwrapper

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExistPathTestCases = []ExistPathWrapper{

	{
		Header:  "File should exist, dir should be false",
		BaseDir: pathsconst.DefaultTempTestDir,
		RelPath: setupFilePath,
		OsType:  ostype.Windows,
		Options: expandnormalize.Options{
			Options: normalize.Options{
				IsNormalize:        true,
				IsLongPathFix:      true,
				IsForceLongPathFix: true,
			},
			IsExpandEnvVar: true,
		},
		IsExistExpectation: true,
		IsDirExpectation:   false,
		IsFileExpectation:  true,
	},
	{
		Header:  "Dir should exist, file should be false",
		BaseDir: pathsconst.DefaultTempTestDir,
		RelPath: "",
		OsType:  ostype.Windows,
		Options: expandnormalize.Options{
			Options: normalize.Options{
				IsNormalize:        true,
				IsLongPathFix:      true,
				IsForceLongPathFix: true,
			},
			IsExpandEnvVar: true,
		},
		IsExistExpectation: true,
		IsDirExpectation:   true,
		IsFileExpectation:  false,
	},
}
View Source
var (
	SetupFiles = pathinsfmt.PathsCreator{
		BasePathsCreator: pathinsfmt.BasePathsCreator{
			RootDir: pathsconst.DefaultTempTestDir,
			Files: []string{
				setupFilePath,
			},
			IsNormalize: true,
		},
		ApplyRwx: &chmodins.RwxOwnerGroupOther{
			Owner: "rwx",
			Group: "rwx",
			Other: "rwx",
		},
		ApplyUserGroup: nil,
	}
)

Functions

This section is empty.

Types

type ExistPathWrapper

type ExistPathWrapper struct {
	Header           string
	BaseDir, RelPath string
	OsType           ostype.Variation
	expandnormalize.Options
	IsExistExpectation bool
	IsDirExpectation   bool
	IsFileExpectation  bool
}

Jump to

Keyboard shortcuts

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