MCPcopy
hub / github.com/shadow1ng/fscan / Error

Method Error

common/proxy/types.go:120–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (e *ProxyError) Error() string {
121 if e.Cause != nil {
122 return e.Message + ": " + e.Cause.Error()
123 }
124 return e.Message
125}
126
127// NewProxyError 创建代理错误
128func NewProxyError(errType, message string, code int, cause error) *ProxyError {

Callers 15

TestProxyError_ErrorFunction · 0.95
TestParseIP_FileNotFoundFunction · 0.45
TestParseIP_NoHostsFunction · 0.45
TestNewProxyErrorFunction · 0.45
DialContextMethod · 0.45
TestStats_ReturnsCopyFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestProxyError_ErrorFunction · 0.76
TestParseIP_FileNotFoundFunction · 0.36
TestParseIP_NoHostsFunction · 0.36
TestNewProxyErrorFunction · 0.36
TestStats_ReturnsCopyFunction · 0.36