BenchmarkRedactCall_SingleHashWithSalt — 1 ‹†alice› marker, HMAC-SHA256.
(b *testing.B)
| 49 | |
| 50 | // BenchmarkRedactCall_SingleHashWithSalt — 1 ‹†alice› marker, HMAC-SHA256. |
| 51 | func BenchmarkRedactCall_HashWithSalt(b *testing.B) { |
| 52 | EnableHashing([]byte("my-secret-salt")) |
| 53 | defer DisableHashing() |
| 54 | s := Sprintf("user=%s action=%s", HashString("alice"), Safe("login")) |
| 55 | b.ResetTimer() |
| 56 | for i := 0; i < b.N; i++ { |
| 57 | _ = s.Redact() |
| 58 | } |
| 59 | } |
| 60 |
nothing calls this directly
no test coverage detected
searching dependent graphs…