Files
zeekayandHanzo Dev 875713e70c Go 1.27.1, and the code it can say more simply
Modules declare go 1.27.1 and the build images follow. go fix applied the
modernizers; omitzero is not applied, since it changes what the JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 18:41:45 -07:00

45 lines
968 B
Go

// Copyright (C) 2019-2024, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package gomock
import (
"testing"
"go.uber.org/mock/gomock"
)
// NewController creates a new gomock.Controller
func NewController(t *testing.T) *gomock.Controller {
return gomock.NewController(t)
}
// Controller is a re-export of gomock.Controller
type Controller = gomock.Controller
// Call is a re-export of gomock.Call
type Call = gomock.Call
// Matcher is a re-export of gomock.Matcher
type Matcher = gomock.Matcher
// Any returns a matcher that matches any value of the specified type
func Any() Matcher {
return gomock.Any()
}
// Eq returns a matcher that matches values equal to x
func Eq(x any) Matcher {
return gomock.Eq(x)
}
// Not returns a matcher that negates the given matcher
func Not(m Matcher) Matcher {
return gomock.Not(m)
}
// Nil returns a matcher that matches nil values
func Nil() Matcher {
return gomock.Nil()
}