Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Jan 29, 2024
1 parent 0737e43 commit 2aa844d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fsutil/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type Info struct {
}

type Creator struct {
// Created keeps track of information about the files created. If a file
// is created several times it only tracks the latest one.
// Created keeps track of information about the filesystem entries created.
// If an entry is created several times it only tracks the latest one.
Created map[string]Info
}

Expand Down
2 changes: 2 additions & 0 deletions internal/fsutil/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ func (s *S) TestCreate(c *C) {
}
}

// treeDumpFSCreator dumps the contents stored in Creator about the filesystem
// entries created using the same format as [testutil.TreeDump].
func treeDumpFSCreator(cr *fsutil.Creator, root string) map[string]string {
result := make(map[string]string)
for _, file := range cr.Created {
Expand Down

0 comments on commit 2aa844d

Please sign in to comment.