MCPcopy
hub / github.com/gogo/protobuf / Error

Method Error

proto/lib.go:293–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291type invalidUTF8Error struct{ field string }
292
293func (e *invalidUTF8Error) Error() string {
294 if e.field == "" {
295 return "proto: invalid UTF-8 detected"
296 }
297 return fmt.Sprintf("proto: field %q contains invalid UTF-8", e.field)
298}
299func (e *invalidUTF8Error) InvalidUTF8() bool {
300 return true
301}

Callers 15

TestIsFunction · 0.45
TestEmptyCornerCasesFunction · 0.45
TestUnmarshalTextFunction · 0.45
TestOneofParsingFunction · 0.45
initFunction · 0.45
TestNilMessageFunction · 0.45
TestExtensionsRoundTripFunction · 0.45
TestNilExtensionFunction · 0.45
BenchmarkDecodeEmptyFunction · 0.45
BenchmarkEmpyFunction · 0.45
TestNumericPrimitivesFunction · 0.45
TestBytesPrimitivesFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestIsFunction · 0.36
TestEmptyCornerCasesFunction · 0.36
TestUnmarshalTextFunction · 0.36
TestOneofParsingFunction · 0.36
initFunction · 0.36
TestNilMessageFunction · 0.36
TestExtensionsRoundTripFunction · 0.36
TestNilExtensionFunction · 0.36
BenchmarkDecodeEmptyFunction · 0.36
BenchmarkEmpyFunction · 0.36
TestNumericPrimitivesFunction · 0.36
TestBytesPrimitivesFunction · 0.36