Skip to content

Commit

Permalink
/root/ -> /base/
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Feb 27, 2024
1 parent cdb50f0 commit 4c2d67f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/slicer/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ var otherSlice = &setup.Slice{
}

var sampleDir = fsutil.Entry{
Path: "/root/exampleDir",
Path: "/base/exampleDir",
Mode: fs.ModeDir | 0654,
Link: "",
}

var sampleFile = fsutil.Entry{
Path: "/root/exampleFile",
Path: "/base/exampleFile",
Mode: 0777,
Hash: "exampleFile_hash",
Size: 5678,
Link: "",
}

var sampleLink = fsutil.Entry{
Path: "/root/exampleLink",
Path: "/base/exampleLink",
Mode: 0777,
Hash: "exampleFile_hash",
Size: 5678,
Link: "/root/exampleFile",
Link: "/base/exampleFile",
}

type sliceAndInfo struct {
Expand Down Expand Up @@ -105,7 +105,7 @@ var reportTests = []struct {
Hash: "exampleFile_hash",
Size: 5678,
Slices: map[*setup.Slice]bool{oneSlice: true},
Link: "/root/exampleFile",
Link: "/base/exampleFile",
}},
}, {
summary: "Several entries",
Expand Down Expand Up @@ -199,7 +199,7 @@ var reportTests = []struct {

func (s *S) TestReportAdd(c *C) {
for _, test := range reportTests {
report := slicer.NewReport("/root/")
report := slicer.NewReport("/base/")
var err error
for _, si := range test.add {
err = report.Add(si.slice, &si.info)
Expand Down

0 comments on commit 4c2d67f

Please sign in to comment.