mirror of
https://github.com/eatmoreapple/openwechat.git
synced 2026-04-22 23:07:16 +08:00
15 lines
235 B
Go
15 lines
235 B
Go
package openwechat
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
)
|
|
|
|
func TestIsNetworkError(t *testing.T) {
|
|
var err = errors.New("test error")
|
|
err = errors.Join(err, NetworkErr)
|
|
if !IsNetworkError(err) {
|
|
t.Error("err is not network error")
|
|
}
|
|
}
|