forked from TrueCloudLab/restic
Remove unused context or testing parameters
This commit is contained in:
parent
5e4e268bdc
commit
1514593f22
14 changed files with 33 additions and 35 deletions
|
@ -6,7 +6,6 @@ package archiver
|
|||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type wrappedFileInfo struct {
|
||||
|
@ -24,7 +23,7 @@ func (fi wrappedFileInfo) Mode() os.FileMode {
|
|||
}
|
||||
|
||||
// wrapFileInfo returns a new os.FileInfo with the mode, owner, and group fields changed.
|
||||
func wrapFileInfo(t testing.TB, fi os.FileInfo) os.FileInfo {
|
||||
func wrapFileInfo(fi os.FileInfo) os.FileInfo {
|
||||
// get the underlying stat_t and modify the values
|
||||
stat := fi.Sys().(*syscall.Stat_t)
|
||||
stat.Mode = mockFileInfoMode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue