Install mockgen by entering the following commands in the terminal:
sudo apt update sudo apt install mockgen
Description:
mocking framework for the Go programming language - mockgen
GoMock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too. . This package provides the "mockgen" utility.
Homepage: https://github.com/golang/mock
Version: 1.0.0-1
Section: universe/devel