github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libkbfs/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="libkbfs" \ 10 --self_package github.com/keybase/client/go/kbfs/libkbfs \ 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/libkey libkey \ 18 KeyOps,\ 19 KeyServer 20 21 gen github.com/keybase/client/go/kbfs/data data \ 22 BlockCache,\ 23 BlockSplitter,\ 24 BlockWithPtrs,\ 25 DirtyBlockCache 26 27 gen github.com/keybase/client/go/kbfs/libkbfs libkbfs \ 28 BlockOps,\ 29 BlockServer,\ 30 Chat,\ 31 Clock,\ 32 Crypto,\ 33 KBFSOps,\ 34 KBPKI,\ 35 KeybaseService,\ 36 KeyCache,\ 37 KeyManager,\ 38 MDCache,\ 39 MDOps,\ 40 MDServer,\ 41 Node,\ 42 NodeCache,\ 43 NodeID,\ 44 Notifier,\ 45 RekeyQueue,\ 46 Reporter,\ 47 SubscriptionNotifier,\ 48 SubscriptionManagerPublisher