Old implementation that did not check for overflows. Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
(b *testing.B)
| 143 | // Verifies: SYS-REQ-015 [example] |
| 144 | // MCDC SYS-REQ-015: N/A |
| 145 | func BenchmarkParseIntOverflows(b *testing.B) { |
| 146 | bytes := []byte("123") |
| 147 | for i := 0; i < b.N; i++ { |
| 148 | parseIntOverflows(bytes) |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // Test helper for SYS-REQ-015. |
| 153 | func parseIntOverflows(bytes []byte) (v int64, ok bool) { |
nothing calls this directly
no test coverage detected