open-vault/vendor/github.com/couchbase/gocb/v2/Makefile
Michael Golowka bd79fbafb3
Add couchbase, elasticsearch, and mongodbatlas back (#10222)
Updated the `Serve` function so these can be added back into Vault
2020-10-22 17:20:17 -06:00

40 lines
1.1 KiB
Makefile

devsetup:
go get github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/vektra/mockery/.../
git submodule update --remote --init --recursive
test:
go test ./
fasttest:
go test -short ./
cover:
go test -coverprofile=cover.out ./
lint:
golangci-lint run -v
check: lint
go test -short -cover -race ./
bench:
go test -bench=. -run=none --disable-logger=true
updatetestcases:
git submodule update --remote --init --recursive
updatemocks:
mockery -name connectionManager -output . -testonly -inpkg
mockery -name kvProvider -output . -testonly -inpkg
mockery -name httpProvider -output . -testonly -inpkg
mockery -name diagnosticsProvider -output . -testonly -inpkg
mockery -name mgmtProvider -output . -testonly -inpkg
mockery -name analyticsProvider -output . -testonly -inpkg
mockery -name queryProvider -output . -testonly -inpkg
mockery -name searchProvider -output . -testonly -inpkg
mockery -name viewProvider -output . -testonly -inpkg
mockery -name waitUntilReadyProvider -output . -testonly -inpkg
# pendingOp is manually mocked
.PHONY: all test devsetup fasttest lint cover check bench updatetestcases updatemocks