- package oscar
- import (
- "context"
- "github.com/stretchr/testify/mock"
- )
- // matchContext matches any instance of Context interface.
- func matchContext() interface{} {
- return mock.MatchedBy(func(ctx any) bool {
- _, ok := ctx.(context.Context)
- return ok
- })
- }
|