github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/data/gen_mocks.sh (about) 1 #!/usr/bin/env bash 2 3 function gen { 4 srcPkg=$1 5 dst=$2 6 symbols=$3 7 8 tmp=$(mktemp) 9 mockgen --package="data" \ 10 --self_package github.com/keybase/client/go/kbfs/data \ 11 $srcPkg $symbols > $tmp 12 dstFile=${dst}_mocks_test.go 13 mv $tmp $dstFile 14 go fmt $dstFile 15 } 16 17 gen github.com/keybase/client/go/kbfs/data data BlockWithPtrs