MCPcopy
hub / github.com/eatmoreapple/openwechat / TestIsNetworkError

Function TestIsNetworkError

errors_test.go:8–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestIsNetworkError(t *testing.T) {
9 var err = errors.New("test error")
10 err = errors.Join(err, NetworkErr)
11 if !IsNetworkError(err) {
12 t.Error("err is not network error")
13 }
14}

Callers

nothing calls this directly

Calls 2

IsNetworkErrorFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected