Documentation
¶
Index ¶
- Constants
- func Put(ctx Context)
- type Context
- func Get(parent context.Context) Context
- func New(parent context.Context) Context
- func WithActor(parent context.Context, value models.User) Context
- func WithCancel(grandParent context.Context) (Context, context.CancelFunc)
- func WithDeadline(grandParent context.Context, deadline time.Time) (Context, context.CancelFunc)
- func WithRequestID(parent context.Context, value string) Context
- func WithTimeout(grandParent context.Context, timeout time.Duration) (Context, context.CancelFunc)
- func WithValue(parent context.Context, key, value interface{}) Context
- type ContextActorInvocation
- type ContextDeadlineInvocation
- type ContextDoneInvocation
- type ContextErrInvocation
- type ContextRequestIDInvocation
- type ContextTestingT
- type ContextValueInvocation
- type ContextWithActorInvocation
- type ContextWithCancelInvocation
- type ContextWithDeadlineInvocation
- type ContextWithParentInvocation
- type ContextWithRequestIDInvocation
- type ContextWithTimeoutInvocation
- type ContextWithValueInvocation
- type FakeContext
- func (_f11 *FakeContext) Actor() (ident1 models.User)
- func (f *FakeContext) ActorCalled() bool
- func (f *FakeContext) ActorCalledN(n int) bool
- func (f *FakeContext) ActorCalledOnce() bool
- func (f *FakeContext) ActorNotCalled() bool
- func (f *FakeContext) AssertActorCalled(t ContextTestingT)
- func (f *FakeContext) AssertActorCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertActorCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertActorNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertDeadlineCalled(t ContextTestingT)
- func (f *FakeContext) AssertDeadlineCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertDeadlineCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertDeadlineNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertDoneCalled(t ContextTestingT)
- func (f *FakeContext) AssertDoneCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertDoneCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertDoneNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertErrCalled(t ContextTestingT)
- func (f *FakeContext) AssertErrCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertErrCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertErrNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertRequestIDCalled(t ContextTestingT)
- func (f *FakeContext) AssertRequestIDCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertRequestIDCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertRequestIDNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertValueCalled(t ContextTestingT)
- func (f *FakeContext) AssertValueCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertValueCalledOnce(t ContextTestingT)
- func (_f8 *FakeContext) AssertValueCalledOnceWith(t ContextTestingT, key interface{})
- func (_f6 *FakeContext) AssertValueCalledWith(t ContextTestingT, key interface{})
- func (f *FakeContext) AssertValueNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithActorCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithActorCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithActorCalledOnce(t ContextTestingT)
- func (_f22 *FakeContext) AssertWithActorCalledOnceWith(t ContextTestingT, value models.User)
- func (_f20 *FakeContext) AssertWithActorCalledWith(t ContextTestingT, value models.User)
- func (f *FakeContext) AssertWithActorNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithCancelCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithCancelCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithCancelCalledOnce(t ContextTestingT)
- func (f *FakeContext) AssertWithCancelNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithDeadlineCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithDeadlineCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithDeadlineCalledOnce(t ContextTestingT)
- func (_f41 *FakeContext) AssertWithDeadlineCalledOnceWith(t ContextTestingT, deadline time.Time)
- func (_f39 *FakeContext) AssertWithDeadlineCalledWith(t ContextTestingT, deadline time.Time)
- func (f *FakeContext) AssertWithDeadlineNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithParentCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithParentCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithParentCalledOnce(t ContextTestingT)
- func (_f16 *FakeContext) AssertWithParentCalledOnceWith(t ContextTestingT, value context.Context)
- func (_f14 *FakeContext) AssertWithParentCalledWith(t ContextTestingT, value context.Context)
- func (f *FakeContext) AssertWithParentNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithRequestIDCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithRequestIDCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithRequestIDCalledOnce(t ContextTestingT)
- func (_f28 *FakeContext) AssertWithRequestIDCalledOnceWith(t ContextTestingT, value string)
- func (_f26 *FakeContext) AssertWithRequestIDCalledWith(t ContextTestingT, value string)
- func (f *FakeContext) AssertWithRequestIDNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithTimeoutCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithTimeoutCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithTimeoutCalledOnce(t ContextTestingT)
- func (_f47 *FakeContext) AssertWithTimeoutCalledOnceWith(t ContextTestingT, timeout time.Duration)
- func (_f45 *FakeContext) AssertWithTimeoutCalledWith(t ContextTestingT, timeout time.Duration)
- func (f *FakeContext) AssertWithTimeoutNotCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithValueCalled(t ContextTestingT)
- func (f *FakeContext) AssertWithValueCalledN(t ContextTestingT, n int)
- func (f *FakeContext) AssertWithValueCalledOnce(t ContextTestingT)
- func (_f34 *FakeContext) AssertWithValueCalledOnceWith(t ContextTestingT, key interface{}, value interface{})
- func (_f32 *FakeContext) AssertWithValueCalledWith(t ContextTestingT, key interface{}, value interface{})
- func (f *FakeContext) AssertWithValueNotCalled(t ContextTestingT)
- func (_f1 *FakeContext) Deadline() (deadline time.Time, ok bool)
- func (f *FakeContext) DeadlineCalled() bool
- func (f *FakeContext) DeadlineCalledN(n int) bool
- func (f *FakeContext) DeadlineCalledOnce() bool
- func (f *FakeContext) DeadlineNotCalled() bool
- func (_f2 *FakeContext) Done() (ident1 <-chan struct{})
- func (f *FakeContext) DoneCalled() bool
- func (f *FakeContext) DoneCalledN(n int) bool
- func (f *FakeContext) DoneCalledOnce() bool
- func (f *FakeContext) DoneNotCalled() bool
- func (_f3 *FakeContext) Err() (ident2 error)
- func (f *FakeContext) ErrCalled() bool
- func (f *FakeContext) ErrCalledN(n int) bool
- func (f *FakeContext) ErrCalledOnce() bool
- func (f *FakeContext) ErrNotCalled() bool
- func (_f10 *FakeContext) RequestID() (ident1 string)
- func (f *FakeContext) RequestIDCalled() bool
- func (f *FakeContext) RequestIDCalledN(n int) bool
- func (f *FakeContext) RequestIDCalledOnce() bool
- func (f *FakeContext) RequestIDNotCalled() bool
- func (f *FakeContext) Reset()
- func (_f4 *FakeContext) Value(key interface{}) (ident3 interface{})
- func (f *FakeContext) ValueCalled() bool
- func (f *FakeContext) ValueCalledN(n int) bool
- func (f *FakeContext) ValueCalledOnce() bool
- func (_f7 *FakeContext) ValueCalledOnceWith(key interface{}) bool
- func (_f5 *FakeContext) ValueCalledWith(key interface{}) (found bool)
- func (f *FakeContext) ValueNotCalled() bool
- func (_f9 *FakeContext) ValueResultsForCall(key interface{}) (ident3 interface{}, found bool)
- func (_f18 *FakeContext) WithActor(value models.User) (ident1 Context)
- func (f *FakeContext) WithActorCalled() bool
- func (f *FakeContext) WithActorCalledN(n int) bool
- func (f *FakeContext) WithActorCalledOnce() bool
- func (_f21 *FakeContext) WithActorCalledOnceWith(value models.User) bool
- func (_f19 *FakeContext) WithActorCalledWith(value models.User) (found bool)
- func (f *FakeContext) WithActorNotCalled() bool
- func (_f23 *FakeContext) WithActorResultsForCall(value models.User) (ident1 Context, found bool)
- func (_f36 *FakeContext) WithCancel() (ident1 Context, ident2 context.CancelFunc)
- func (f *FakeContext) WithCancelCalled() bool
- func (f *FakeContext) WithCancelCalledN(n int) bool
- func (f *FakeContext) WithCancelCalledOnce() bool
- func (f *FakeContext) WithCancelNotCalled() bool
- func (_f37 *FakeContext) WithDeadline(deadline time.Time) (ident1 Context, ident2 context.CancelFunc)
- func (f *FakeContext) WithDeadlineCalled() bool
- func (f *FakeContext) WithDeadlineCalledN(n int) bool
- func (f *FakeContext) WithDeadlineCalledOnce() bool
- func (_f40 *FakeContext) WithDeadlineCalledOnceWith(deadline time.Time) bool
- func (_f38 *FakeContext) WithDeadlineCalledWith(deadline time.Time) (found bool)
- func (f *FakeContext) WithDeadlineNotCalled() bool
- func (_f42 *FakeContext) WithDeadlineResultsForCall(deadline time.Time) (ident1 Context, ident2 context.CancelFunc, found bool)
- func (_f12 *FakeContext) WithParent(value context.Context) (ident1 Context)
- func (f *FakeContext) WithParentCalled() bool
- func (f *FakeContext) WithParentCalledN(n int) bool
- func (f *FakeContext) WithParentCalledOnce() bool
- func (_f15 *FakeContext) WithParentCalledOnceWith(value context.Context) bool
- func (_f13 *FakeContext) WithParentCalledWith(value context.Context) (found bool)
- func (f *FakeContext) WithParentNotCalled() bool
- func (_f17 *FakeContext) WithParentResultsForCall(value context.Context) (ident1 Context, found bool)
- func (_f24 *FakeContext) WithRequestID(value string) (ident1 Context)
- func (f *FakeContext) WithRequestIDCalled() bool
- func (f *FakeContext) WithRequestIDCalledN(n int) bool
- func (f *FakeContext) WithRequestIDCalledOnce() bool
- func (_f27 *FakeContext) WithRequestIDCalledOnceWith(value string) bool
- func (_f25 *FakeContext) WithRequestIDCalledWith(value string) (found bool)
- func (f *FakeContext) WithRequestIDNotCalled() bool
- func (_f29 *FakeContext) WithRequestIDResultsForCall(value string) (ident1 Context, found bool)
- func (_f43 *FakeContext) WithTimeout(timeout time.Duration) (ident1 Context, ident2 context.CancelFunc)
- func (f *FakeContext) WithTimeoutCalled() bool
- func (f *FakeContext) WithTimeoutCalledN(n int) bool
- func (f *FakeContext) WithTimeoutCalledOnce() bool
- func (_f46 *FakeContext) WithTimeoutCalledOnceWith(timeout time.Duration) bool
- func (_f44 *FakeContext) WithTimeoutCalledWith(timeout time.Duration) (found bool)
- func (f *FakeContext) WithTimeoutNotCalled() bool
- func (_f48 *FakeContext) WithTimeoutResultsForCall(timeout time.Duration) (ident1 Context, ident2 context.CancelFunc, found bool)
- func (_f30 *FakeContext) WithValue(key interface{}, value interface{}) (ident1 Context)
- func (f *FakeContext) WithValueCalled() bool
- func (f *FakeContext) WithValueCalledN(n int) bool
- func (f *FakeContext) WithValueCalledOnce() bool
- func (_f33 *FakeContext) WithValueCalledOnceWith(key interface{}, value interface{}) bool
- func (_f31 *FakeContext) WithValueCalledWith(key interface{}, value interface{}) (found bool)
- func (f *FakeContext) WithValueNotCalled() bool
- func (_f35 *FakeContext) WithValueResultsForCall(key interface{}, value interface{}) (ident1 Context, found bool)
Constants ¶
const ( IDKey = "ContextRequestIDKey" ActorKey = "ContextActorKey" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context interface {
context.Context
RequestID() string
Actor() models.User
WithParent(value context.Context) Context
WithActor(value models.User) Context
WithRequestID(value string) Context
WithValue(key, value interface{}) Context
WithCancel() (Context, context.CancelFunc)
WithDeadline(deadline time.Time) (Context, context.CancelFunc)
WithTimeout(timeout time.Duration) (Context, context.CancelFunc)
}
func WithCancel ¶ added in v0.3.0
func WithCancel(grandParent context.Context) (Context, context.CancelFunc)
func WithDeadline ¶ added in v0.3.0
func WithRequestID ¶ added in v0.3.0
func WithTimeout ¶ added in v0.3.0
type ContextActorInvocation ¶ added in v0.3.0
ContextActorInvocation represents a single call of FakeContext.Actor
type ContextDeadlineInvocation ¶ added in v0.3.0
ContextDeadlineInvocation represents a single call of FakeContext.Deadline
type ContextDoneInvocation ¶ added in v0.3.0
type ContextDoneInvocation struct {
Results struct {
Ident1 <-chan struct{}
}
}
ContextDoneInvocation represents a single call of FakeContext.Done
type ContextErrInvocation ¶ added in v0.3.0
type ContextErrInvocation struct {
Results struct {
Ident2 error
}
}
ContextErrInvocation represents a single call of FakeContext.Err
type ContextRequestIDInvocation ¶ added in v0.3.0
type ContextRequestIDInvocation struct {
Results struct {
Ident1 string
}
}
ContextRequestIDInvocation represents a single call of FakeContext.RequestID
type ContextTestingT ¶ added in v0.3.0
type ContextTestingT interface {
Error(...interface{})
Errorf(string, ...interface{})
Fatal(...interface{})
Helper()
}
ContextTestingT represents the methods of "testing".T used by charlatan Fakes. It avoids importing the testing package.
type ContextValueInvocation ¶ added in v0.3.0
type ContextValueInvocation struct {
Parameters struct {
Key interface{}
}
Results struct {
Ident3 interface{}
}
}
ContextValueInvocation represents a single call of FakeContext.Value
type ContextWithActorInvocation ¶ added in v0.3.0
type ContextWithActorInvocation struct {
Parameters struct {
Value models.User
}
Results struct {
Ident1 Context
}
}
ContextWithActorInvocation represents a single call of FakeContext.WithActor
type ContextWithCancelInvocation ¶ added in v0.3.0
type ContextWithCancelInvocation struct {
Results struct {
Ident1 Context
Ident2 context.CancelFunc
}
}
ContextWithCancelInvocation represents a single call of FakeContext.WithCancel
type ContextWithDeadlineInvocation ¶ added in v0.3.0
type ContextWithDeadlineInvocation struct {
Parameters struct {
Deadline time.Time
}
Results struct {
Ident1 Context
Ident2 context.CancelFunc
}
}
ContextWithDeadlineInvocation represents a single call of FakeContext.WithDeadline
type ContextWithParentInvocation ¶ added in v0.3.0
type ContextWithParentInvocation struct {
Parameters struct {
Value context.Context
}
Results struct {
Ident1 Context
}
}
ContextWithParentInvocation represents a single call of FakeContext.WithParent
type ContextWithRequestIDInvocation ¶ added in v0.3.0
type ContextWithRequestIDInvocation struct {
Parameters struct {
Value string
}
Results struct {
Ident1 Context
}
}
ContextWithRequestIDInvocation represents a single call of FakeContext.WithRequestID
type ContextWithTimeoutInvocation ¶ added in v0.3.0
type ContextWithTimeoutInvocation struct {
Parameters struct {
Timeout time.Duration
}
Results struct {
Ident1 Context
Ident2 context.CancelFunc
}
}
ContextWithTimeoutInvocation represents a single call of FakeContext.WithTimeout
type ContextWithValueInvocation ¶ added in v0.3.0
type ContextWithValueInvocation struct {
Parameters struct {
Key interface{}
Value interface{}
}
Results struct {
Ident1 Context
}
}
ContextWithValueInvocation represents a single call of FakeContext.WithValue
type FakeContext ¶
type FakeContext struct {
DeadlineHook func() (time.Time, bool)
DoneHook func() <-chan struct{}
ErrHook func() error
ValueHook func(interface{}) interface{}
RequestIDHook func() string
ActorHook func() models.User
WithParentHook func(context.Context) Context
WithActorHook func(models.User) Context
WithRequestIDHook func(string) Context
WithValueHook func(interface{}, interface{}) Context
WithCancelHook func() (Context, context.CancelFunc)
WithDeadlineHook func(time.Time) (Context, context.CancelFunc)
WithTimeoutHook func(time.Duration) (Context, context.CancelFunc)
DeadlineCalls []*ContextDeadlineInvocation
DoneCalls []*ContextDoneInvocation
ErrCalls []*ContextErrInvocation
ValueCalls []*ContextValueInvocation
RequestIDCalls []*ContextRequestIDInvocation
ActorCalls []*ContextActorInvocation
WithParentCalls []*ContextWithParentInvocation
WithActorCalls []*ContextWithActorInvocation
WithRequestIDCalls []*ContextWithRequestIDInvocation
WithValueCalls []*ContextWithValueInvocation
WithCancelCalls []*ContextWithCancelInvocation
WithDeadlineCalls []*ContextWithDeadlineInvocation
WithTimeoutCalls []*ContextWithTimeoutInvocation
}
FakeContext is a mock implementation of Context for testing. Use it in your tests as in this example:
package example
func TestWithContext(t *testing.T) {
f := &context.FakeContext{
DeadlineHook: func() (deadline time.Time, ok bool) {
// ensure parameters meet expections, signal errors using t, etc
return
},
}
// test code goes here ...
// assert state of FakeDeadline ...
f.AssertDeadlineCalledOnce(t)
}
Create anonymous function implementations for only those interface methods that should be called in the code under test. This will force a panic if any unexpected calls are made to FakeDeadline.
func NewFakeContextDefaultError ¶
func NewFakeContextDefaultError(t ContextTestingT) *FakeContext
NewFakeContextDefaultError returns an instance of FakeContext with all hooks configured to call t.Error
func NewFakeContextDefaultFatal ¶
func NewFakeContextDefaultFatal(t ContextTestingT) *FakeContext
NewFakeContextDefaultFatal returns an instance of FakeContext with all hooks configured to call t.Fatal
func NewFakeContextDefaultPanic ¶
func NewFakeContextDefaultPanic() *FakeContext
NewFakeContextDefaultPanic returns an instance of FakeContext with all hooks configured to panic
func (*FakeContext) Actor ¶
func (_f11 *FakeContext) Actor() (ident1 models.User)
func (*FakeContext) ActorCalled ¶
func (f *FakeContext) ActorCalled() bool
ActorCalled returns true if FakeContext.Actor was called
func (*FakeContext) ActorCalledN ¶
func (f *FakeContext) ActorCalledN(n int) bool
ActorCalledN returns true if FakeContext.Actor was called at least n times
func (*FakeContext) ActorCalledOnce ¶
func (f *FakeContext) ActorCalledOnce() bool
ActorCalledOnce returns true if FakeContext.Actor was called exactly once
func (*FakeContext) ActorNotCalled ¶
func (f *FakeContext) ActorNotCalled() bool
ActorNotCalled returns true if FakeContext.Actor was not called
func (*FakeContext) AssertActorCalled ¶
func (f *FakeContext) AssertActorCalled(t ContextTestingT)
AssertActorCalled calls t.Error if FakeContext.Actor was not called
func (*FakeContext) AssertActorCalledN ¶
func (f *FakeContext) AssertActorCalledN(t ContextTestingT, n int)
AssertActorCalledN calls t.Error if FakeContext.Actor was called less than n times
func (*FakeContext) AssertActorCalledOnce ¶
func (f *FakeContext) AssertActorCalledOnce(t ContextTestingT)
AssertActorCalledOnce calls t.Error if FakeContext.Actor was not called exactly once
func (*FakeContext) AssertActorNotCalled ¶
func (f *FakeContext) AssertActorNotCalled(t ContextTestingT)
AssertActorNotCalled calls t.Error if FakeContext.Actor was called
func (*FakeContext) AssertDeadlineCalled ¶
func (f *FakeContext) AssertDeadlineCalled(t ContextTestingT)
AssertDeadlineCalled calls t.Error if FakeContext.Deadline was not called
func (*FakeContext) AssertDeadlineCalledN ¶
func (f *FakeContext) AssertDeadlineCalledN(t ContextTestingT, n int)
AssertDeadlineCalledN calls t.Error if FakeContext.Deadline was called less than n times
func (*FakeContext) AssertDeadlineCalledOnce ¶
func (f *FakeContext) AssertDeadlineCalledOnce(t ContextTestingT)
AssertDeadlineCalledOnce calls t.Error if FakeContext.Deadline was not called exactly once
func (*FakeContext) AssertDeadlineNotCalled ¶
func (f *FakeContext) AssertDeadlineNotCalled(t ContextTestingT)
AssertDeadlineNotCalled calls t.Error if FakeContext.Deadline was called
func (*FakeContext) AssertDoneCalled ¶
func (f *FakeContext) AssertDoneCalled(t ContextTestingT)
AssertDoneCalled calls t.Error if FakeContext.Done was not called
func (*FakeContext) AssertDoneCalledN ¶
func (f *FakeContext) AssertDoneCalledN(t ContextTestingT, n int)
AssertDoneCalledN calls t.Error if FakeContext.Done was called less than n times
func (*FakeContext) AssertDoneCalledOnce ¶
func (f *FakeContext) AssertDoneCalledOnce(t ContextTestingT)
AssertDoneCalledOnce calls t.Error if FakeContext.Done was not called exactly once
func (*FakeContext) AssertDoneNotCalled ¶
func (f *FakeContext) AssertDoneNotCalled(t ContextTestingT)
AssertDoneNotCalled calls t.Error if FakeContext.Done was called
func (*FakeContext) AssertErrCalled ¶
func (f *FakeContext) AssertErrCalled(t ContextTestingT)
AssertErrCalled calls t.Error if FakeContext.Err was not called
func (*FakeContext) AssertErrCalledN ¶
func (f *FakeContext) AssertErrCalledN(t ContextTestingT, n int)
AssertErrCalledN calls t.Error if FakeContext.Err was called less than n times
func (*FakeContext) AssertErrCalledOnce ¶
func (f *FakeContext) AssertErrCalledOnce(t ContextTestingT)
AssertErrCalledOnce calls t.Error if FakeContext.Err was not called exactly once
func (*FakeContext) AssertErrNotCalled ¶
func (f *FakeContext) AssertErrNotCalled(t ContextTestingT)
AssertErrNotCalled calls t.Error if FakeContext.Err was called
func (*FakeContext) AssertRequestIDCalled ¶
func (f *FakeContext) AssertRequestIDCalled(t ContextTestingT)
AssertRequestIDCalled calls t.Error if FakeContext.RequestID was not called
func (*FakeContext) AssertRequestIDCalledN ¶
func (f *FakeContext) AssertRequestIDCalledN(t ContextTestingT, n int)
AssertRequestIDCalledN calls t.Error if FakeContext.RequestID was called less than n times
func (*FakeContext) AssertRequestIDCalledOnce ¶
func (f *FakeContext) AssertRequestIDCalledOnce(t ContextTestingT)
AssertRequestIDCalledOnce calls t.Error if FakeContext.RequestID was not called exactly once
func (*FakeContext) AssertRequestIDNotCalled ¶
func (f *FakeContext) AssertRequestIDNotCalled(t ContextTestingT)
AssertRequestIDNotCalled calls t.Error if FakeContext.RequestID was called
func (*FakeContext) AssertValueCalled ¶
func (f *FakeContext) AssertValueCalled(t ContextTestingT)
AssertValueCalled calls t.Error if FakeContext.Value was not called
func (*FakeContext) AssertValueCalledN ¶
func (f *FakeContext) AssertValueCalledN(t ContextTestingT, n int)
AssertValueCalledN calls t.Error if FakeContext.Value was called less than n times
func (*FakeContext) AssertValueCalledOnce ¶
func (f *FakeContext) AssertValueCalledOnce(t ContextTestingT)
AssertValueCalledOnce calls t.Error if FakeContext.Value was not called exactly once
func (*FakeContext) AssertValueCalledOnceWith ¶
func (_f8 *FakeContext) AssertValueCalledOnceWith(t ContextTestingT, key interface{})
AssertValueCalledOnceWith calls t.Error if FakeContext.Value was not called exactly once with the given values
func (*FakeContext) AssertValueCalledWith ¶
func (_f6 *FakeContext) AssertValueCalledWith(t ContextTestingT, key interface{})
AssertValueCalledWith calls t.Error if FakeContext.Value was not called with the given values
func (*FakeContext) AssertValueNotCalled ¶
func (f *FakeContext) AssertValueNotCalled(t ContextTestingT)
AssertValueNotCalled calls t.Error if FakeContext.Value was called
func (*FakeContext) AssertWithActorCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithActorCalled(t ContextTestingT)
AssertWithActorCalled calls t.Error if FakeContext.WithActor was not called
func (*FakeContext) AssertWithActorCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithActorCalledN(t ContextTestingT, n int)
AssertWithActorCalledN calls t.Error if FakeContext.WithActor was called less than n times
func (*FakeContext) AssertWithActorCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithActorCalledOnce(t ContextTestingT)
AssertWithActorCalledOnce calls t.Error if FakeContext.WithActor was not called exactly once
func (*FakeContext) AssertWithActorCalledOnceWith ¶ added in v0.3.0
func (_f22 *FakeContext) AssertWithActorCalledOnceWith(t ContextTestingT, value models.User)
AssertWithActorCalledOnceWith calls t.Error if FakeContext.WithActor was not called exactly once with the given values
func (*FakeContext) AssertWithActorCalledWith ¶ added in v0.3.0
func (_f20 *FakeContext) AssertWithActorCalledWith(t ContextTestingT, value models.User)
AssertWithActorCalledWith calls t.Error if FakeContext.WithActor was not called with the given values
func (*FakeContext) AssertWithActorNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithActorNotCalled(t ContextTestingT)
AssertWithActorNotCalled calls t.Error if FakeContext.WithActor was called
func (*FakeContext) AssertWithCancelCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithCancelCalled(t ContextTestingT)
AssertWithCancelCalled calls t.Error if FakeContext.WithCancel was not called
func (*FakeContext) AssertWithCancelCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithCancelCalledN(t ContextTestingT, n int)
AssertWithCancelCalledN calls t.Error if FakeContext.WithCancel was called less than n times
func (*FakeContext) AssertWithCancelCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithCancelCalledOnce(t ContextTestingT)
AssertWithCancelCalledOnce calls t.Error if FakeContext.WithCancel was not called exactly once
func (*FakeContext) AssertWithCancelNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithCancelNotCalled(t ContextTestingT)
AssertWithCancelNotCalled calls t.Error if FakeContext.WithCancel was called
func (*FakeContext) AssertWithDeadlineCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithDeadlineCalled(t ContextTestingT)
AssertWithDeadlineCalled calls t.Error if FakeContext.WithDeadline was not called
func (*FakeContext) AssertWithDeadlineCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithDeadlineCalledN(t ContextTestingT, n int)
AssertWithDeadlineCalledN calls t.Error if FakeContext.WithDeadline was called less than n times
func (*FakeContext) AssertWithDeadlineCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithDeadlineCalledOnce(t ContextTestingT)
AssertWithDeadlineCalledOnce calls t.Error if FakeContext.WithDeadline was not called exactly once
func (*FakeContext) AssertWithDeadlineCalledOnceWith ¶ added in v0.3.0
func (_f41 *FakeContext) AssertWithDeadlineCalledOnceWith(t ContextTestingT, deadline time.Time)
AssertWithDeadlineCalledOnceWith calls t.Error if FakeContext.WithDeadline was not called exactly once with the given values
func (*FakeContext) AssertWithDeadlineCalledWith ¶ added in v0.3.0
func (_f39 *FakeContext) AssertWithDeadlineCalledWith(t ContextTestingT, deadline time.Time)
AssertWithDeadlineCalledWith calls t.Error if FakeContext.WithDeadline was not called with the given values
func (*FakeContext) AssertWithDeadlineNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithDeadlineNotCalled(t ContextTestingT)
AssertWithDeadlineNotCalled calls t.Error if FakeContext.WithDeadline was called
func (*FakeContext) AssertWithParentCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithParentCalled(t ContextTestingT)
AssertWithParentCalled calls t.Error if FakeContext.WithParent was not called
func (*FakeContext) AssertWithParentCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithParentCalledN(t ContextTestingT, n int)
AssertWithParentCalledN calls t.Error if FakeContext.WithParent was called less than n times
func (*FakeContext) AssertWithParentCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithParentCalledOnce(t ContextTestingT)
AssertWithParentCalledOnce calls t.Error if FakeContext.WithParent was not called exactly once
func (*FakeContext) AssertWithParentCalledOnceWith ¶ added in v0.3.0
func (_f16 *FakeContext) AssertWithParentCalledOnceWith(t ContextTestingT, value context.Context)
AssertWithParentCalledOnceWith calls t.Error if FakeContext.WithParent was not called exactly once with the given values
func (*FakeContext) AssertWithParentCalledWith ¶ added in v0.3.0
func (_f14 *FakeContext) AssertWithParentCalledWith(t ContextTestingT, value context.Context)
AssertWithParentCalledWith calls t.Error if FakeContext.WithParent was not called with the given values
func (*FakeContext) AssertWithParentNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithParentNotCalled(t ContextTestingT)
AssertWithParentNotCalled calls t.Error if FakeContext.WithParent was called
func (*FakeContext) AssertWithRequestIDCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithRequestIDCalled(t ContextTestingT)
AssertWithRequestIDCalled calls t.Error if FakeContext.WithRequestID was not called
func (*FakeContext) AssertWithRequestIDCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithRequestIDCalledN(t ContextTestingT, n int)
AssertWithRequestIDCalledN calls t.Error if FakeContext.WithRequestID was called less than n times
func (*FakeContext) AssertWithRequestIDCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithRequestIDCalledOnce(t ContextTestingT)
AssertWithRequestIDCalledOnce calls t.Error if FakeContext.WithRequestID was not called exactly once
func (*FakeContext) AssertWithRequestIDCalledOnceWith ¶ added in v0.3.0
func (_f28 *FakeContext) AssertWithRequestIDCalledOnceWith(t ContextTestingT, value string)
AssertWithRequestIDCalledOnceWith calls t.Error if FakeContext.WithRequestID was not called exactly once with the given values
func (*FakeContext) AssertWithRequestIDCalledWith ¶ added in v0.3.0
func (_f26 *FakeContext) AssertWithRequestIDCalledWith(t ContextTestingT, value string)
AssertWithRequestIDCalledWith calls t.Error if FakeContext.WithRequestID was not called with the given values
func (*FakeContext) AssertWithRequestIDNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithRequestIDNotCalled(t ContextTestingT)
AssertWithRequestIDNotCalled calls t.Error if FakeContext.WithRequestID was called
func (*FakeContext) AssertWithTimeoutCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithTimeoutCalled(t ContextTestingT)
AssertWithTimeoutCalled calls t.Error if FakeContext.WithTimeout was not called
func (*FakeContext) AssertWithTimeoutCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithTimeoutCalledN(t ContextTestingT, n int)
AssertWithTimeoutCalledN calls t.Error if FakeContext.WithTimeout was called less than n times
func (*FakeContext) AssertWithTimeoutCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithTimeoutCalledOnce(t ContextTestingT)
AssertWithTimeoutCalledOnce calls t.Error if FakeContext.WithTimeout was not called exactly once
func (*FakeContext) AssertWithTimeoutCalledOnceWith ¶ added in v0.3.0
func (_f47 *FakeContext) AssertWithTimeoutCalledOnceWith(t ContextTestingT, timeout time.Duration)
AssertWithTimeoutCalledOnceWith calls t.Error if FakeContext.WithTimeout was not called exactly once with the given values
func (*FakeContext) AssertWithTimeoutCalledWith ¶ added in v0.3.0
func (_f45 *FakeContext) AssertWithTimeoutCalledWith(t ContextTestingT, timeout time.Duration)
AssertWithTimeoutCalledWith calls t.Error if FakeContext.WithTimeout was not called with the given values
func (*FakeContext) AssertWithTimeoutNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithTimeoutNotCalled(t ContextTestingT)
AssertWithTimeoutNotCalled calls t.Error if FakeContext.WithTimeout was called
func (*FakeContext) AssertWithValueCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithValueCalled(t ContextTestingT)
AssertWithValueCalled calls t.Error if FakeContext.WithValue was not called
func (*FakeContext) AssertWithValueCalledN ¶ added in v0.3.0
func (f *FakeContext) AssertWithValueCalledN(t ContextTestingT, n int)
AssertWithValueCalledN calls t.Error if FakeContext.WithValue was called less than n times
func (*FakeContext) AssertWithValueCalledOnce ¶ added in v0.3.0
func (f *FakeContext) AssertWithValueCalledOnce(t ContextTestingT)
AssertWithValueCalledOnce calls t.Error if FakeContext.WithValue was not called exactly once
func (*FakeContext) AssertWithValueCalledOnceWith ¶ added in v0.3.0
func (_f34 *FakeContext) AssertWithValueCalledOnceWith(t ContextTestingT, key interface{}, value interface{})
AssertWithValueCalledOnceWith calls t.Error if FakeContext.WithValue was not called exactly once with the given values
func (*FakeContext) AssertWithValueCalledWith ¶ added in v0.3.0
func (_f32 *FakeContext) AssertWithValueCalledWith(t ContextTestingT, key interface{}, value interface{})
AssertWithValueCalledWith calls t.Error if FakeContext.WithValue was not called with the given values
func (*FakeContext) AssertWithValueNotCalled ¶ added in v0.3.0
func (f *FakeContext) AssertWithValueNotCalled(t ContextTestingT)
AssertWithValueNotCalled calls t.Error if FakeContext.WithValue was called
func (*FakeContext) DeadlineCalled ¶
func (f *FakeContext) DeadlineCalled() bool
DeadlineCalled returns true if FakeContext.Deadline was called
func (*FakeContext) DeadlineCalledN ¶
func (f *FakeContext) DeadlineCalledN(n int) bool
DeadlineCalledN returns true if FakeContext.Deadline was called at least n times
func (*FakeContext) DeadlineCalledOnce ¶
func (f *FakeContext) DeadlineCalledOnce() bool
DeadlineCalledOnce returns true if FakeContext.Deadline was called exactly once
func (*FakeContext) DeadlineNotCalled ¶
func (f *FakeContext) DeadlineNotCalled() bool
DeadlineNotCalled returns true if FakeContext.Deadline was not called
func (*FakeContext) Done ¶
func (_f2 *FakeContext) Done() (ident1 <-chan struct{})
func (*FakeContext) DoneCalled ¶
func (f *FakeContext) DoneCalled() bool
DoneCalled returns true if FakeContext.Done was called
func (*FakeContext) DoneCalledN ¶
func (f *FakeContext) DoneCalledN(n int) bool
DoneCalledN returns true if FakeContext.Done was called at least n times
func (*FakeContext) DoneCalledOnce ¶
func (f *FakeContext) DoneCalledOnce() bool
DoneCalledOnce returns true if FakeContext.Done was called exactly once
func (*FakeContext) DoneNotCalled ¶
func (f *FakeContext) DoneNotCalled() bool
DoneNotCalled returns true if FakeContext.Done was not called
func (*FakeContext) Err ¶
func (_f3 *FakeContext) Err() (ident2 error)
func (*FakeContext) ErrCalled ¶
func (f *FakeContext) ErrCalled() bool
ErrCalled returns true if FakeContext.Err was called
func (*FakeContext) ErrCalledN ¶
func (f *FakeContext) ErrCalledN(n int) bool
ErrCalledN returns true if FakeContext.Err was called at least n times
func (*FakeContext) ErrCalledOnce ¶
func (f *FakeContext) ErrCalledOnce() bool
ErrCalledOnce returns true if FakeContext.Err was called exactly once
func (*FakeContext) ErrNotCalled ¶
func (f *FakeContext) ErrNotCalled() bool
ErrNotCalled returns true if FakeContext.Err was not called
func (*FakeContext) RequestID ¶
func (_f10 *FakeContext) RequestID() (ident1 string)
func (*FakeContext) RequestIDCalled ¶
func (f *FakeContext) RequestIDCalled() bool
RequestIDCalled returns true if FakeContext.RequestID was called
func (*FakeContext) RequestIDCalledN ¶
func (f *FakeContext) RequestIDCalledN(n int) bool
RequestIDCalledN returns true if FakeContext.RequestID was called at least n times
func (*FakeContext) RequestIDCalledOnce ¶
func (f *FakeContext) RequestIDCalledOnce() bool
RequestIDCalledOnce returns true if FakeContext.RequestID was called exactly once
func (*FakeContext) RequestIDNotCalled ¶
func (f *FakeContext) RequestIDNotCalled() bool
RequestIDNotCalled returns true if FakeContext.RequestID was not called
func (*FakeContext) Reset ¶ added in v0.3.0
func (f *FakeContext) Reset()
func (*FakeContext) Value ¶
func (_f4 *FakeContext) Value(key interface{}) (ident3 interface{})
func (*FakeContext) ValueCalled ¶
func (f *FakeContext) ValueCalled() bool
ValueCalled returns true if FakeContext.Value was called
func (*FakeContext) ValueCalledN ¶
func (f *FakeContext) ValueCalledN(n int) bool
ValueCalledN returns true if FakeContext.Value was called at least n times
func (*FakeContext) ValueCalledOnce ¶
func (f *FakeContext) ValueCalledOnce() bool
ValueCalledOnce returns true if FakeContext.Value was called exactly once
func (*FakeContext) ValueCalledOnceWith ¶
func (_f7 *FakeContext) ValueCalledOnceWith(key interface{}) bool
ValueCalledOnceWith returns true if FakeContext.Value was called exactly once with the given values
func (*FakeContext) ValueCalledWith ¶
func (_f5 *FakeContext) ValueCalledWith(key interface{}) (found bool)
ValueCalledWith returns true if FakeContext.Value was called with the given values
func (*FakeContext) ValueNotCalled ¶
func (f *FakeContext) ValueNotCalled() bool
ValueNotCalled returns true if FakeContext.Value was not called
func (*FakeContext) ValueResultsForCall ¶
func (_f9 *FakeContext) ValueResultsForCall(key interface{}) (ident3 interface{}, found bool)
ValueResultsForCall returns the result values for the first call to FakeContext.Value with the given values
func (*FakeContext) WithActor ¶ added in v0.3.0
func (_f18 *FakeContext) WithActor(value models.User) (ident1 Context)
func (*FakeContext) WithActorCalled ¶ added in v0.3.0
func (f *FakeContext) WithActorCalled() bool
WithActorCalled returns true if FakeContext.WithActor was called
func (*FakeContext) WithActorCalledN ¶ added in v0.3.0
func (f *FakeContext) WithActorCalledN(n int) bool
WithActorCalledN returns true if FakeContext.WithActor was called at least n times
func (*FakeContext) WithActorCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithActorCalledOnce() bool
WithActorCalledOnce returns true if FakeContext.WithActor was called exactly once
func (*FakeContext) WithActorCalledOnceWith ¶ added in v0.3.0
func (_f21 *FakeContext) WithActorCalledOnceWith(value models.User) bool
WithActorCalledOnceWith returns true if FakeContext.WithActor was called exactly once with the given values
func (*FakeContext) WithActorCalledWith ¶ added in v0.3.0
func (_f19 *FakeContext) WithActorCalledWith(value models.User) (found bool)
WithActorCalledWith returns true if FakeContext.WithActor was called with the given values
func (*FakeContext) WithActorNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithActorNotCalled() bool
WithActorNotCalled returns true if FakeContext.WithActor was not called
func (*FakeContext) WithActorResultsForCall ¶ added in v0.3.0
func (_f23 *FakeContext) WithActorResultsForCall(value models.User) (ident1 Context, found bool)
WithActorResultsForCall returns the result values for the first call to FakeContext.WithActor with the given values
func (*FakeContext) WithCancel ¶ added in v0.3.0
func (_f36 *FakeContext) WithCancel() (ident1 Context, ident2 context.CancelFunc)
func (*FakeContext) WithCancelCalled ¶ added in v0.3.0
func (f *FakeContext) WithCancelCalled() bool
WithCancelCalled returns true if FakeContext.WithCancel was called
func (*FakeContext) WithCancelCalledN ¶ added in v0.3.0
func (f *FakeContext) WithCancelCalledN(n int) bool
WithCancelCalledN returns true if FakeContext.WithCancel was called at least n times
func (*FakeContext) WithCancelCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithCancelCalledOnce() bool
WithCancelCalledOnce returns true if FakeContext.WithCancel was called exactly once
func (*FakeContext) WithCancelNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithCancelNotCalled() bool
WithCancelNotCalled returns true if FakeContext.WithCancel was not called
func (*FakeContext) WithDeadline ¶ added in v0.3.0
func (_f37 *FakeContext) WithDeadline(deadline time.Time) (ident1 Context, ident2 context.CancelFunc)
func (*FakeContext) WithDeadlineCalled ¶ added in v0.3.0
func (f *FakeContext) WithDeadlineCalled() bool
WithDeadlineCalled returns true if FakeContext.WithDeadline was called
func (*FakeContext) WithDeadlineCalledN ¶ added in v0.3.0
func (f *FakeContext) WithDeadlineCalledN(n int) bool
WithDeadlineCalledN returns true if FakeContext.WithDeadline was called at least n times
func (*FakeContext) WithDeadlineCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithDeadlineCalledOnce() bool
WithDeadlineCalledOnce returns true if FakeContext.WithDeadline was called exactly once
func (*FakeContext) WithDeadlineCalledOnceWith ¶ added in v0.3.0
func (_f40 *FakeContext) WithDeadlineCalledOnceWith(deadline time.Time) bool
WithDeadlineCalledOnceWith returns true if FakeContext.WithDeadline was called exactly once with the given values
func (*FakeContext) WithDeadlineCalledWith ¶ added in v0.3.0
func (_f38 *FakeContext) WithDeadlineCalledWith(deadline time.Time) (found bool)
WithDeadlineCalledWith returns true if FakeContext.WithDeadline was called with the given values
func (*FakeContext) WithDeadlineNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithDeadlineNotCalled() bool
WithDeadlineNotCalled returns true if FakeContext.WithDeadline was not called
func (*FakeContext) WithDeadlineResultsForCall ¶ added in v0.3.0
func (_f42 *FakeContext) WithDeadlineResultsForCall(deadline time.Time) (ident1 Context, ident2 context.CancelFunc, found bool)
WithDeadlineResultsForCall returns the result values for the first call to FakeContext.WithDeadline with the given values
func (*FakeContext) WithParent ¶ added in v0.3.0
func (_f12 *FakeContext) WithParent(value context.Context) (ident1 Context)
func (*FakeContext) WithParentCalled ¶ added in v0.3.0
func (f *FakeContext) WithParentCalled() bool
WithParentCalled returns true if FakeContext.WithParent was called
func (*FakeContext) WithParentCalledN ¶ added in v0.3.0
func (f *FakeContext) WithParentCalledN(n int) bool
WithParentCalledN returns true if FakeContext.WithParent was called at least n times
func (*FakeContext) WithParentCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithParentCalledOnce() bool
WithParentCalledOnce returns true if FakeContext.WithParent was called exactly once
func (*FakeContext) WithParentCalledOnceWith ¶ added in v0.3.0
func (_f15 *FakeContext) WithParentCalledOnceWith(value context.Context) bool
WithParentCalledOnceWith returns true if FakeContext.WithParent was called exactly once with the given values
func (*FakeContext) WithParentCalledWith ¶ added in v0.3.0
func (_f13 *FakeContext) WithParentCalledWith(value context.Context) (found bool)
WithParentCalledWith returns true if FakeContext.WithParent was called with the given values
func (*FakeContext) WithParentNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithParentNotCalled() bool
WithParentNotCalled returns true if FakeContext.WithParent was not called
func (*FakeContext) WithParentResultsForCall ¶ added in v0.3.0
func (_f17 *FakeContext) WithParentResultsForCall(value context.Context) (ident1 Context, found bool)
WithParentResultsForCall returns the result values for the first call to FakeContext.WithParent with the given values
func (*FakeContext) WithRequestID ¶ added in v0.3.0
func (_f24 *FakeContext) WithRequestID(value string) (ident1 Context)
func (*FakeContext) WithRequestIDCalled ¶ added in v0.3.0
func (f *FakeContext) WithRequestIDCalled() bool
WithRequestIDCalled returns true if FakeContext.WithRequestID was called
func (*FakeContext) WithRequestIDCalledN ¶ added in v0.3.0
func (f *FakeContext) WithRequestIDCalledN(n int) bool
WithRequestIDCalledN returns true if FakeContext.WithRequestID was called at least n times
func (*FakeContext) WithRequestIDCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithRequestIDCalledOnce() bool
WithRequestIDCalledOnce returns true if FakeContext.WithRequestID was called exactly once
func (*FakeContext) WithRequestIDCalledOnceWith ¶ added in v0.3.0
func (_f27 *FakeContext) WithRequestIDCalledOnceWith(value string) bool
WithRequestIDCalledOnceWith returns true if FakeContext.WithRequestID was called exactly once with the given values
func (*FakeContext) WithRequestIDCalledWith ¶ added in v0.3.0
func (_f25 *FakeContext) WithRequestIDCalledWith(value string) (found bool)
WithRequestIDCalledWith returns true if FakeContext.WithRequestID was called with the given values
func (*FakeContext) WithRequestIDNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithRequestIDNotCalled() bool
WithRequestIDNotCalled returns true if FakeContext.WithRequestID was not called
func (*FakeContext) WithRequestIDResultsForCall ¶ added in v0.3.0
func (_f29 *FakeContext) WithRequestIDResultsForCall(value string) (ident1 Context, found bool)
WithRequestIDResultsForCall returns the result values for the first call to FakeContext.WithRequestID with the given values
func (*FakeContext) WithTimeout ¶ added in v0.3.0
func (_f43 *FakeContext) WithTimeout(timeout time.Duration) (ident1 Context, ident2 context.CancelFunc)
func (*FakeContext) WithTimeoutCalled ¶ added in v0.3.0
func (f *FakeContext) WithTimeoutCalled() bool
WithTimeoutCalled returns true if FakeContext.WithTimeout was called
func (*FakeContext) WithTimeoutCalledN ¶ added in v0.3.0
func (f *FakeContext) WithTimeoutCalledN(n int) bool
WithTimeoutCalledN returns true if FakeContext.WithTimeout was called at least n times
func (*FakeContext) WithTimeoutCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithTimeoutCalledOnce() bool
WithTimeoutCalledOnce returns true if FakeContext.WithTimeout was called exactly once
func (*FakeContext) WithTimeoutCalledOnceWith ¶ added in v0.3.0
func (_f46 *FakeContext) WithTimeoutCalledOnceWith(timeout time.Duration) bool
WithTimeoutCalledOnceWith returns true if FakeContext.WithTimeout was called exactly once with the given values
func (*FakeContext) WithTimeoutCalledWith ¶ added in v0.3.0
func (_f44 *FakeContext) WithTimeoutCalledWith(timeout time.Duration) (found bool)
WithTimeoutCalledWith returns true if FakeContext.WithTimeout was called with the given values
func (*FakeContext) WithTimeoutNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithTimeoutNotCalled() bool
WithTimeoutNotCalled returns true if FakeContext.WithTimeout was not called
func (*FakeContext) WithTimeoutResultsForCall ¶ added in v0.3.0
func (_f48 *FakeContext) WithTimeoutResultsForCall(timeout time.Duration) (ident1 Context, ident2 context.CancelFunc, found bool)
WithTimeoutResultsForCall returns the result values for the first call to FakeContext.WithTimeout with the given values
func (*FakeContext) WithValue ¶ added in v0.3.0
func (_f30 *FakeContext) WithValue(key interface{}, value interface{}) (ident1 Context)
func (*FakeContext) WithValueCalled ¶ added in v0.3.0
func (f *FakeContext) WithValueCalled() bool
WithValueCalled returns true if FakeContext.WithValue was called
func (*FakeContext) WithValueCalledN ¶ added in v0.3.0
func (f *FakeContext) WithValueCalledN(n int) bool
WithValueCalledN returns true if FakeContext.WithValue was called at least n times
func (*FakeContext) WithValueCalledOnce ¶ added in v0.3.0
func (f *FakeContext) WithValueCalledOnce() bool
WithValueCalledOnce returns true if FakeContext.WithValue was called exactly once
func (*FakeContext) WithValueCalledOnceWith ¶ added in v0.3.0
func (_f33 *FakeContext) WithValueCalledOnceWith(key interface{}, value interface{}) bool
WithValueCalledOnceWith returns true if FakeContext.WithValue was called exactly once with the given values
func (*FakeContext) WithValueCalledWith ¶ added in v0.3.0
func (_f31 *FakeContext) WithValueCalledWith(key interface{}, value interface{}) (found bool)
WithValueCalledWith returns true if FakeContext.WithValue was called with the given values
func (*FakeContext) WithValueNotCalled ¶ added in v0.3.0
func (f *FakeContext) WithValueNotCalled() bool
WithValueNotCalled returns true if FakeContext.WithValue was not called
func (*FakeContext) WithValueResultsForCall ¶ added in v0.3.0
func (_f35 *FakeContext) WithValueResultsForCall(key interface{}, value interface{}) (ident1 Context, found bool)
WithValueResultsForCall returns the result values for the first call to FakeContext.WithValue with the given values