MCPcopy Create free account
hub / github.com/segmentio/encoding / equalError

Function equalError

json/golang_decode_test.go:1057–1065  ·  view source on GitHub ↗
(a, b error)

Source from the content-addressed store, hash-verified

1055}
1056
1057func equalError(a, b error) bool {
1058 if a == nil {
1059 return b == nil
1060 }
1061 if b == nil {
1062 return a == nil
1063 }
1064 return a.Error() == b.Error()
1065}
1066
1067func TestUnmarshal(t *testing.T) {
1068 for i, tt := range unmarshalTests {

Callers 2

TestUnmarshalFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…