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

Function TestParseIntSignOnly_KI2

parser_test.go:2448–2452  ·  view source on GitHub ↗

Verifies: SYS-REQ-015

(t *testing.T)

Source from the content-addressed store, hash-verified

2446
2447// Verifies: SYS-REQ-015
2448func TestParseIntSignOnly_KI2(t *testing.T) {
2449 if _, err := ParseInt([]byte("-")); err == nil {
2450 t.Fatal(`ParseInt("-") returned nil error, want malformed-value error`)
2451 }
2452}
2453
2454// Verifies: SYS-REQ-110
2455func TestSetTopLevelArrayAppend_KI4(t *testing.T) {

Callers

nothing calls this directly

Calls 1

ParseIntFunction · 0.85

Tested by

no test coverage detected