feat: convert entire CLI to clibase (#6491)

I'm sorry.
This commit is contained in:
Ammar Bandukwala
2023-03-23 17:42:20 -05:00
committed by GitHub
parent b71b8daa21
commit 2bd6d2908e
345 changed files with 9965 additions and 9082 deletions

View File

@ -55,3 +55,14 @@ func TestGitSSHKeys(t *testing.T) {
require.Error(t, err, "empty string should fail")
})
}
func BenchmarkGenerate(b *testing.B) {
for i := 0; i < b.N; i++ {
// Note that this is using dumbRand under the hood, so it will be
// a lot slower in production.
_, _, err := gitsshkey.Generate(gitsshkey.AlgorithmRSA4096)
if err != nil {
b.Fatal(err)
}
}
}