github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/generated/mocks/generate.go (about) 1 // Copyright (c) 2018 Uber Technologies, Inc. 2 // 3 // Permission is hereby granted, free of charge, to any person obtaining a copy 4 // of this software and associated documentation files (the "Software"), to deal 5 // in the Software without restriction, including without limitation the rights 6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 // copies of the Software, and to permit persons to whom the Software is 8 // furnished to do so, subject to the following conditions: 9 // 10 // The above copyright notice and this permission notice shall be included in 11 // all copies or substantial portions of the Software. 12 // 13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 // THE SOFTWARE. 20 21 // mockgen rules for generating mocks for exported interfaces (reflection mode) 22 23 //go:generate sh -c "mockgen -package=fs $PACKAGE/src/dbnode/persist/fs DataFileSetWriter,DataFileSetReader,DataFileSetSeeker,IndexFileSetWriter,IndexFileSetReader,IndexSegmentFileSetWriter,IndexSegmentFileSet,IndexSegmentFile,SnapshotMetadataFileWriter,DataFileSetSeekerManager,ConcurrentDataFileSetSeeker,MergeWith,StreamingWriter | genclean -pkg $PACKAGE/src/dbnode/persist/fs -out ../../persist/fs/fs_mock.go" 24 //go:generate sh -c "mockgen -package=xio $PACKAGE/src/dbnode/x/xio SegmentReader,SegmentReaderPool | genclean -pkg $PACKAGE/src/dbnode/x/xio -out ../../x/xio/io_mock.go" 25 //go:generate sh -c "mockgen -package=digest -destination=../../digest/digest_mock.go $PACKAGE/src/dbnode/digest ReaderWithDigest" 26 //go:generate sh -c "mockgen -package=series $PACKAGE/src/dbnode/storage/series DatabaseSeries,QueryableBlockRetriever | genclean -pkg $PACKAGE/src/dbnode/storage/series -out ../../storage/series/series_mock.go" 27 //go:generate sh -c "mockgen -package=storage $PACKAGE/src/dbnode/storage IndexWriter | genclean -pkg $PACKAGE/src/dbnode/storage -out ../../storage/lookup_mock.go" 28 29 // mockgen rules for generating mocks for unexported interfaces (file mode) 30 //go:generate sh -c "mockgen -package=encoding -destination=../../encoding/encoding_mock.go -source=../../encoding/types.go" 31 //go:generate sh -c "mockgen -package=bootstrap -destination=../../storage/bootstrap/bootstrap_mock.go -source=../../storage/bootstrap/types.go" 32 //go:generate sh -c "mockgen -package=persist -destination=../../persist/persist_mock.go -source=../../persist/types.go" 33 //go:generate sh -c "mockgen -package=storage -destination=../../storage/storage_mock.go -source=../../storage/types.go" 34 //go:generate sh -c "mockgen -package=series -destination=../../storage/series/buffer_mock.go -source=../../storage/series/buffer.go" 35 //go:generate sh -c "mockgen -package=block -destination=../../storage/block/block_mock.go -source=../../storage/block/types.go" 36 //go:generate sh -c "mockgen -package=rpc -destination=../../generated/thrift/rpc/rpc_mock.go -source=../../generated/thrift/rpc/tchan-rpc.go" 37 //go:generate sh -c "mockgen -package=client -destination=../../client/client_mock.go -source=../../client/types.go" 38 //go:generate sh -c "mockgen -package=commitlog -destination=../../persist/fs/commitlog/commit_log_mock.go -source=../../persist/fs/commitlog/types.go" 39 //go:generate sh -c "mockgen -package=topology -destination=../../topology/topology_mock.go -source=../../topology/types.go" 40 //go:generate sh -c "mockgen -package=retention -destination=../../retention/retention_mock.go -source=../../retention/types.go" 41 //go:generate sh -c "mockgen -package=namespace -destination=../../namespace/namespace_mock.go -source=../../namespace/types.go" 42 //go:generate sh -c "mockgen -package=kvadmin -destination=../../namespace/kvadmin/kvadmin_mock.go -source=../../namespace/kvadmin/types.go" 43 //go:generate sh -c "mockgen -package=runtime -destination=../../runtime/runtime_mock.go -source=../../runtime/types.go" 44 //go:generate sh -c "mockgen -package=writes -destination=../../ts/writes/write_batch_mock.go -source=../../ts/writes/types.go" 45 //go:generate sh -c "mockgen -package=index -destination=../../storage/index/index_mock.go -source=../../storage/index/types.go" 46 //go:generate sh -c "mockgen -package=permits -destination=../../storage/limits/permits/permits_mock.go -source=../../storage/limits/permits/types.go" 47 48 package mocks