Files
query-orchestration/vendor/github.com/pashagolub/pgxmock/v3/argument.go
T
Michael McGuinness 6e5c7aedc8 Merged in feature/devbox (pull request #11)
Add Devbox

* adddevbox

* cleanupdockerfile

* testscripts
2025-01-10 12:58:14 +00:00

24 lines
480 B
Go

package pgxmock
// Argument interface allows to match
// any argument in specific way when used with
// ExpectedQuery and ExpectedExec expectations.
type Argument interface {
Match(interface{}) bool
}
// AnyArg will return an Argument which can
// match any kind of arguments.
//
// Useful for time.Time or similar kinds of arguments.
func AnyArg() Argument {
return anyArgument{}
}
type anyArgument struct{}
func (a anyArgument) Match(_ interface{}) bool {
return true
}