MCPcopy
hub / github.com/uber-go/nilaway / simpleUsesErrFunc

Function simpleUsesErrFunc

testdata/src/go.uber.org/errorreturn/errorreturn.go:195–200  ·  view source on GitHub ↗

this is mostly here to identify failures of the error checking mechanism in its most basic form if this test fails then the mechanism is very broken

(i int)

Source from the content-addressed store, hash-verified

193// this is mostly here to identify failures of the error checking mechanism in its most basic form
194// if this test fails then the mechanism is very broken
195func simpleUsesErrFunc(i int) {
196 nonnilPtr, _, err := retsNonnilNilableWithErr(&i, &i)
197 if err == nil {
198 takesNonnil(nonnilPtr)
199 }
200}
201
202func usesErrFunc() {
203 i := 0

Callers

nothing calls this directly

Calls 2

retsNonnilNilableWithErrFunction · 0.85
takesNonnilFunction · 0.70

Tested by

no test coverage detected