testutil

package
v0.0.0-...-2c34a8a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Package cloudeng.io/cmd/idu/internal/testutil

CircleCI Go Report Card

import cloudeng.io/cmd/idu/internal/testutil

Functions

Func TestdataIDCombinations
func TestdataIDCombinations(modTime time.Time, mode fs.FileMode, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)

IDCombinations returns 5 sets of file.Info values with differing combinations of uid and gid. ug00 has uid, gid for both files ug10 has uid+1, gid for the second file ug01 has uid, gid+1 for the second file ug11 has uid+1, gid+1 for the second file ugOther has uid+1, gid+1 for both files

Func TestdataIDCombinationsDirs
func TestdataIDCombinationsDirs(modTime time.Time, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)
Func TestdataIDCombinationsFiles
func TestdataIDCombinationsFiles(modTime time.Time, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)
Func TestdataNewInfo
func TestdataNewInfo(name string, size, blocks int64, mode fs.FileMode, modTime time.Time, uid, gid int64, device, inode uint64) file.Info
Func TestdataNewPrefixInfo
func TestdataNewPrefixInfo(name string, size, blocks int64, mode fs.FileMode, modTime time.Time, uid, gid int64, dev, inode uint64) prefixinfo.T

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestdataIDCombinations

func TestdataIDCombinations(modTime time.Time, mode fs.FileMode, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)

IDCombinations returns 5 sets of file.Info values with differing combinations of uid and gid. ug00 has uid, gid for both files ug10 has uid+1, gid for the second file ug01 has uid, gid+1 for the second file ug11 has uid+1, gid+1 for the second file ugOther has uid+1, gid+1 for both files

func TestdataIDCombinationsDirs

func TestdataIDCombinationsDirs(modTime time.Time, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)

func TestdataIDCombinationsFiles

func TestdataIDCombinationsFiles(modTime time.Time, uid, gid int64, inode uint64) (ug00, ug10, ug01, ug11, ugOther []file.Info)

func TestdataNewInfo

func TestdataNewInfo(name string, size, blocks int64, mode fs.FileMode, modTime time.Time, uid, gid int64, device, inode uint64) file.Info

func TestdataNewPrefixInfo

func TestdataNewPrefixInfo(name string, size, blocks int64, mode fs.FileMode, modTime time.Time, uid, gid int64, dev, inode uint64) prefixinfo.T

Types

This section is empty.

Jump to

Keyboard shortcuts

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