MCPcopy Index your code
hub / github.com/segmentio/encoding / parseFalse

Method parseFalse

json/parse.go:278–286  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

276}
277
278func (d decoder) parseFalse(b []byte) ([]byte, []byte, Kind, error) {
279 if hasFalsePrefix(b) {
280 return b[:5], b[5:], False, nil
281 }
282 if len(b) < 5 {
283 return nil, b[len(b):], Undefined, unexpectedEOF(b)
284 }
285 return nil, b, Undefined, syntaxError(b, "expected 'false' but found invalid token")
286}
287
288func (d decoder) parseNumber(b []byte) (v, r []byte, kind Kind, err error) {
289 if len(b) == 0 {

Callers 2

parseValueMethod · 0.95
NextMethod · 0.80

Calls 3

hasFalsePrefixFunction · 0.85
unexpectedEOFFunction · 0.85
syntaxErrorFunction · 0.85

Tested by

no test coverage detected