Skip to content

Commit

Permalink
Mark listAllTestPacks as a test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed Oct 6, 2023
1 parent f38545e commit e4beadb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ func (p packtuple) String() string {
// to discover and count the registries, refs, and packs in a
// given cachePath
func listAllTestPacks(t *testing.T, cachePath string) packtuples {
t.Helper()
acc := make([]packtuple, 0, 10)
dirFS := os.DirFS(cachePath)
fs.WalkDir(dirFS, ".", func(p string, d fs.DirEntry, err error) error {
Expand Down

0 comments on commit e4beadb

Please sign in to comment.