From da7b0151902cd93f9d56f7553538d228f02da954 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Thu, 4 Jul 2024 10:11:51 +0100 Subject: [PATCH] feat: improve summary stats Close #340 Signed-off-by: Brian McGee --- cli/helpers_test.go | 2 +- stats/stats.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/helpers_test.go b/cli/helpers_test.go index c6fd2406..4779cea3 100644 --- a/cli/helpers_test.go +++ b/cli/helpers_test.go @@ -86,5 +86,5 @@ func assertStats(t *testing.T, as *require.Assertions, traversed int32, emitted func assertFormatted(t *testing.T, as *require.Assertions, output []byte, count int) { t.Helper() - as.Contains(string(output), fmt.Sprintf("formatted %d files", count)) + as.Contains(string(output), fmt.Sprintf("(%d changed)", count)) } diff --git a/stats/stats.go b/stats/stats.go index b065bc56..80f9da37 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -49,8 +49,7 @@ func Print() { components := []string{ "traversed %d files", "emitted %d files for processing", - "matched %d files to formatters", - "formatted %d files in %v", + "formatted %d files (%d changed) in %v", "", }