Alternative implementation without using unsafe Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
(b *testing.B)
| 65 | // Verifies: SYS-REQ-001 |
| 66 | // MCDC SYS-REQ-001: N/A |
| 67 | func BenchmarkBytesEqualStrSafe(b *testing.B) { |
| 68 | for i := 0; i < b.N; i++ { |
| 69 | bytesEqualStrSafe(benchmarkBytes, benchmarkString) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | // Alternative implementation using unsafe, but that is slower than the current implementation |
| 74 | // Verifies: SYS-REQ-001 |
nothing calls this directly
no test coverage detected