1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00

Modernize benchmarks

See https://go.dev/blog/testing-b-loop
This commit is contained in:
Stefan Haller
2025-04-18 21:30:24 +02:00
parent 14eb4c29ca
commit 4cfa6e0c98
3 changed files with 6 additions and 6 deletions

View File

@@ -691,7 +691,7 @@ keybinding:
`)
func BenchmarkMigrationOnLargeConfiguration(b *testing.B) {
for i := 0; i < b.N; i++ {
for b.Loop() {
_, _ = computeMigratedConfig("path doesn't matter", largeConfiguration)
}
}