Use "pack file" instead of "data file" (#2885)
- changed variable names, especially changed DataFile into PackFile - changed in some comments - always use "pack file" in docu
This commit is contained in:
parent
643bbbe156
commit
0fed6a8dfc
45 changed files with 126 additions and 126 deletions
6
internal/cache/file_test.go
vendored
6
internal/cache/file_test.go
vendored
|
@ -88,7 +88,7 @@ func TestFiles(t *testing.T) {
|
|||
|
||||
var tests = []restic.FileType{
|
||||
restic.SnapshotFile,
|
||||
restic.DataFile,
|
||||
restic.PackFile,
|
||||
restic.IndexFile,
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ func TestFileSaveWriter(t *testing.T) {
|
|||
id := restic.ID{}
|
||||
copy(id[:], data)
|
||||
h := restic.Handle{
|
||||
Type: restic.DataFile,
|
||||
Type: restic.PackFile,
|
||||
Name: id.String(),
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ func TestFileLoad(t *testing.T) {
|
|||
id := restic.ID{}
|
||||
copy(id[:], data)
|
||||
h := restic.Handle{
|
||||
Type: restic.DataFile,
|
||||
Type: restic.PackFile,
|
||||
Name: id.String(),
|
||||
}
|
||||
if err := c.Save(h, bytes.NewReader(data)); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue