go test -run Test_AcquireReleaseBind -v
(t *testing.T)
| 79 | |
| 80 | // go test -run Test_AcquireReleaseBind -v |
| 81 | func Test_AcquireReleaseBind(t *testing.T) { |
| 82 | b := AcquireBind() |
| 83 | b.shouldSkipErrHandling = false |
| 84 | b.shouldSkipValidation = true |
| 85 | b.ctx = &DefaultCtx{} |
| 86 | ReleaseBind(b) |
| 87 | |
| 88 | b2 := AcquireBind() |
| 89 | require.Nil(t, b2.ctx) |
| 90 | require.True(t, b2.shouldSkipErrHandling) |
| 91 | require.False(t, b2.shouldSkipValidation) |
| 92 | ReleaseBind(b2) |
| 93 | } |
| 94 | |
| 95 | // go test -run Test_BindError -v |
| 96 |
nothing calls this directly
no test coverage detected