Skip to content

luxfi/mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Mock utilities and testing helpers for the Lux ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages