MCPcopy
hub / github.com/zeromicro/go-zero / NotNil

Method NotNil

core/errorx/batcherror.go:37–42  ·  view source on GitHub ↗

NotNil checks if there is at least one error inside the BatchError.

()

Source from the content-addressed store, hash-verified

35
36// NotNil checks if there is at least one error inside the BatchError.
37func (be *BatchError) NotNil() bool {
38 be.lock.RLock()
39 defer be.lock.RUnlock()
40
41 return len(be.errs) > 0
42}

Callers 15

GoFormatApiFunction · 0.95
TestBatchErrorNilFunction · 0.95
TestBatchErrorOneErrorFunction · 0.95
TestBatchErrorWithErrorsFunction · 0.95
TestBatchError_AddFunction · 0.95
TestParsePlainTextFunction · 0.80
TestConvertColumnFunction · 0.80
TestCleanFunction · 0.80
TestParser_ParseFunction · 0.80
TestArrayDefinitionsBugFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestBatchErrorNilFunction · 0.76
TestBatchErrorOneErrorFunction · 0.76
TestBatchErrorWithErrorsFunction · 0.76
TestBatchError_AddFunction · 0.76
TestParsePlainTextFunction · 0.64
TestConvertColumnFunction · 0.64
TestCleanFunction · 0.64
TestParser_ParseFunction · 0.64
TestArrayDefinitionsBugFunction · 0.64
TestTags_GetFunction · 0.64