Centralized mock utilities and helpers for the Lux ecosystem.
- GoMock utilities: Simplified gomock controller and matcher utilities
- Mock generators: Tools for generating mocks
- Test helpers: Common testing utilities
go get github.com/luxfi/mock
import (
"github.com/luxfi/mock/gomock"
)
func TestExample(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
// Use your mocks here
}
Use the standard mockgen tool:
mockgen -source=interface.go -destination=mocks/mock_interface.go -package=mocks
See the LICENSE file for licensing terms.