(b *testing.B)
| 69 | } |
| 70 | |
| 71 | func BenchmarkBcrypt(b *testing.B) { |
| 72 | for i := 0; i < b.N; i++ { |
| 73 | _, err := HashPassword([]byte("thisisareallybadpassword")) |
| 74 | if err != nil { |
| 75 | b.Error(err) |
| 76 | break |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func ExampleHash() { |
| 82 | tag := "hashing file for lookup key" |
nothing calls this directly
no test coverage detected