zeekay 126b7c126c carry the github copy onto the forge
github.com held commits this host lacked, which refuses the mirror push
("fetch first") and stops github receiving anything at all. Merging rather
than overwriting, so the mirror is a fast-forward again and neither side's
work is dropped.
2026-08-20 21:55:53 -07:00
2026-06-28 20:57:04 -07:00
2026-08-20 20:13:01 -07:00
2026-08-20 20:13:01 -07:00
2026-01-08 23:44:33 -08:00
2025-08-18 13:18:24 -05:00
2026-06-28 20:57:05 -07:00

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.

S
Description
Mock utilities and testing helpers for the Lux ecosystem
Readme MIT
43 KiB
Languages
Go 100%