Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: MIT

README

mock

Lux Mock Library

Centralized mock utilities and helpers for the Lux ecosystem.

Features

  • GoMock utilities: Simplified gomock controller and matcher utilities
  • Mock generators: Tools for generating mocks
  • Test helpers: Common testing utilities

Installation

go get github.com/luxfi/mock

Usage

import (
    "github.com/luxfi/mock/gomock"
)

func TestExample(t *testing.T) {
    ctrl := gomock.NewController(t)
    defer ctrl.Finish()
    
    // Use your mocks here
}

Generating Mocks

Use the standard mockgen tool:

mockgen -source=interface.go -destination=mocks/mock_interface.go -package=mocks

License

See the LICENSE file for licensing terms.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL