MCPcopy
hub / github.com/silenceper/wechat / TestDecodeWithCommonErrorNoError

Function TestDecodeWithCommonErrorNoError

util/error_test.go:9–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7var expectError string = "Send Error , errcode=43101 , errmsg=user refuse to accept the msg"
8
9func TestDecodeWithCommonErrorNoError(t *testing.T) {
10 err := DecodeWithCommonError([]byte(okErrData), "Send")
11 if err != nil {
12 t.Error("DecodeWithCommonError should not return error")
13 return
14 }
15}
16
17func TestDecodeWithCommonError(t *testing.T) {
18 err := DecodeWithCommonError([]byte(errData), "Send")

Callers

nothing calls this directly

Calls 2

DecodeWithCommonErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…