MCPcopy Create free account
hub / github.com/buger/jsonparser / BenchmarkParseIntOverflows

Function BenchmarkParseIntOverflows

bytes_test.go:145–150  ·  view source on GitHub ↗

Old implementation that did not check for overflows. Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

143// Verifies: SYS-REQ-015 [example]
144// MCDC SYS-REQ-015: N/A
145func 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.
153func parseIntOverflows(bytes []byte) (v int64, ok bool) {

Callers

nothing calls this directly

Calls 1

parseIntOverflowsFunction · 0.85

Tested by

no test coverage detected