Skip to content

Commit

Permalink
Merge pull request #454 from numtide/feat/refine-processing
Browse files Browse the repository at this point in the history
feat: refine processing
  • Loading branch information
brianmcgee authored Oct 17, 2024
2 parents 11d102b + ca655f5 commit ce42c30
Show file tree
Hide file tree
Showing 12 changed files with 579 additions and 471 deletions.
351 changes: 39 additions & 312 deletions cmd/format/format.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func TestCache(t *testing.T) {

// running should match but not format anything
_, statz, err = treefmt(t, "--config-file", configPath, "--tree-root", tempDir)
as.ErrorIs(err, formatCmd.ErrFormattingFailures)
as.ErrorIs(err, format.ErrFormattingFailures)

assertStats(t, as, statz, map[stats.Type]int{
stats.Traversed: 32,
Expand All @@ -494,7 +494,7 @@ func TestCache(t *testing.T) {

// running again should provide the same result
_, statz, err = treefmt(t, "--config-file", configPath, "--tree-root", tempDir)
as.ErrorIs(err, formatCmd.ErrFormattingFailures)
as.ErrorIs(err, format.ErrFormattingFailures)

assertStats(t, as, statz, map[stats.Type]int{
stats.Traversed: 32,
Expand Down
94 changes: 0 additions & 94 deletions format/cache.go

This file was deleted.

Loading

0 comments on commit ce42c30

Please sign in to comment.