https://github.com/tendermint/tendermint
Raw File
Tip revision: c074430f82d02294c413e51b93771fd0c86e3065 authored by William Banfield on 02 September 2022, 19:27:04 UTC
add nolint
Tip revision: c074430
mockery_generate.sh
#!/bin/sh
#
# Invoke Mockery v2 to update generated mocks for the given type.
#
# This script runs a locally-installed "mockery" if available, otherwise it
# runs the published Docker container. This legerdemain is so that the CI build
# and a local build can work off the same script.
#
if ! which mockery ; then
  mockery() {
    docker run --rm -v "$PWD":/w --workdir=/w vektra/mockery:v2.12.3
  }
fi

mockery --disable-version-string --case underscore --name "$@"
back to top