gomock_generator

command module
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 12 Imported by: 0

README

Package gomock_generator v1.5.2

This tool aims at simplifying and accelerating the generation of mocks in Scalingo projects using GoMock.

This tool can either be used as a CLI or as a Go library.

CLI

$ gomock_generator -h
NAME:
   GoMock generator - Highly parallelized generator of gomock mocks
USAGE:
   gomock_generator [global options]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --mocks-filepath value         Path to the JSON file containing the MockConfiguration. Its containing directory is the base package directory. (default: "./mocks.json") [$MOCKS_FILEPATH]
   --signatures-filename value    Filename of the signatures cache, written in the base package directory. (default: "mocks_sig.json") [$SIGNATURES_FILENAME]
   --concurrent-goroutines value  Concurrent amount of goroutines to generate mock. (default: 4) [$CONCURRENT_GOROUTINES]
   --debug                        Activate debug logs
   --help, -h                     show help
   --version, -v                  print the version

VERSION:
   1.5.2

Go Library

The gomockgenerator package provides a GenerateMocks function. It works along with the GenerationConfiguration and MocksConfiguration structures. Comments in the code explain the purpose of every attribute.

Installation

go install github.com/Scalingo/go-utils/gomock_generator@latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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