Skip to content

Commit

Permalink
clarified tests with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Feb 2, 2024
1 parent 8d53d66 commit a21f777
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/slicer/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ var sampleLink = fsutil.Info{
Link: "/root/exampleFile",
}

var testFiles = []struct {
// Tests are run sequentially and update the same stateful report.
var sequentialReportTest = []struct {
summary string
info fsutil.Info
slice *setup.Slice
Expand Down Expand Up @@ -108,7 +109,7 @@ var testFiles = []struct {

func (s *S) TestReportAddFile(c *C) {
report := slicer.NewReport("/root")
for _, test := range testFiles {
for _, test := range sequentialReportTest {
err := report.AddEntry(test.slice, test.info)
if test.err != "" {
c.Assert(err, ErrorMatches, test.err, Commentf(test.summary))
Expand Down

0 comments on commit a21f777

Please sign in to comment.