From 1ef43151b8d9695c3df51a78d6eb491f2cd9e59b Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 5 Dec 2024 01:36:22 +0000 Subject: [PATCH] upd benchmark function names --- day-01/internal/one/solve_internal_test.go | 2 +- day-01/internal/two/solve_internal_test.go | 2 +- day-01/solve_internal_test.go | 2 +- day-02/internal/one/solve_internal_test.go | 2 +- day-02/internal/two/solve_internal_test.go | 2 +- day-02/solve_internal_test.go | 2 +- day-03/internal/one/solve_internal_test.go | 2 +- day-03/internal/two/solve_internal_test.go | 2 +- day-03/solve_internal_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/day-01/internal/one/solve_internal_test.go b/day-01/internal/one/solve_internal_test.go index f9cc9af..e5fd7ea 100644 --- a/day-01/internal/one/solve_internal_test.go +++ b/day-01/internal/one/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-01/internal/two/solve_internal_test.go b/day-01/internal/two/solve_internal_test.go index e3efa34..ecb05d5 100644 --- a/day-01/internal/two/solve_internal_test.go +++ b/day-01/internal/two/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-01/solve_internal_test.go b/day-01/solve_internal_test.go index 1c00798..b153234 100644 --- a/day-01/solve_internal_test.go +++ b/day-01/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-02/internal/one/solve_internal_test.go b/day-02/internal/one/solve_internal_test.go index f9cc9af..e5fd7ea 100644 --- a/day-02/internal/one/solve_internal_test.go +++ b/day-02/internal/one/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-02/internal/two/solve_internal_test.go b/day-02/internal/two/solve_internal_test.go index e3efa34..ecb05d5 100644 --- a/day-02/internal/two/solve_internal_test.go +++ b/day-02/internal/two/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-02/solve_internal_test.go b/day-02/solve_internal_test.go index cb1c531..0044d8a 100644 --- a/day-02/solve_internal_test.go +++ b/day-02/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-03/internal/one/solve_internal_test.go b/day-03/internal/one/solve_internal_test.go index f9cc9af..e5fd7ea 100644 --- a/day-03/internal/one/solve_internal_test.go +++ b/day-03/internal/one/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-03/internal/two/solve_internal_test.go b/day-03/internal/two/solve_internal_test.go index e3efa34..ecb05d5 100644 --- a/day-03/internal/two/solve_internal_test.go +++ b/day-03/internal/two/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) } diff --git a/day-03/solve_internal_test.go b/day-03/solve_internal_test.go index 98f962c..398e141 100644 --- a/day-03/solve_internal_test.go +++ b/day-03/solve_internal_test.go @@ -9,7 +9,7 @@ import ( //go:embed testdata/input.txt var data []byte -func BenchmarkMain(b *testing.B) { +func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) Solve(data) }