Documentation
¶
Index ¶
Constants ¶
View Source
const ( SourceDataDirName = "testdata" SourceRecursiveDirName = "test-is-recursive" SourceIsSkipOnExistDirName = "test-skip-on-exist" PkgDirName = "PathHelper/CopyRecursive" )
Variables ¶
View Source
var ( SrcTestDataDir = pathjoin.JoinNormalized( currentDir(), SourceDataDirName) SourceRecursivePath = pathjoin.JoinNormalized( SrcTestDataDir, SourceRecursiveDirName) Destination = pathjoin.WithTempTest(PkgDirName) )
View Source
var CopyRecursiveTestCases = []CopyRecursiveTestWrapper{ { Header: "", IsClearDestinationPre: true, IsClearDestinationPost: true, CopyInstruction: copyrecursive.Instruction{ SourceDestination: copyrecursive.SourceDestination{ Source: SourceRecursivePath, Destination: Destination, }, Options: copyrecursive.Options{ IsSkipOnExist: false, IsRecursive: true, IsClearDestination: false, IsUseShellOrCmd: false, IsNormalize: false, IsExpandVar: false, }, }, ErrorCollectionVerifier: errverify.CollectionVerifier{ Verifier: errverify.Verifier{ Header: "", FunctionName: "TestCopierRecursive_3", VerifyAs: stringcompareas.Equal, IsPrintError: true, }, ExpectationLines: &corestr.SimpleSlice{ Items: []string{}, }, ErrorLength: 0, }, }, }
Functions ¶
This section is empty.
Types ¶
type CopyRecursiveTestWrapper ¶
type CopyRecursiveTestWrapper struct { Header string IsClearDestinationPre, IsClearDestinationPost bool CopyInstruction copyrecursive.Instruction ErrorCollectionVerifier errverify.CollectionVerifier }
Click to show internal directories.
Click to hide internal directories.