Skip to content

Commit 6202688

Browse files
authored
Merge pull request vmware-tanzu#779 from zhengxiexie/zhengxie/ipadd-ut
Add unit test for ipaddressallocation
2 parents cfe816c + 3128793 commit 6202688

File tree

4 files changed

+671
-3
lines changed

4 files changed

+671
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ golangci-fix: $(GOLANGCI_LINT_BIN)
7979

8080
.PHONY: test
8181
test: manifests generate fmt vet envtest .coverage ## Run tests .
82-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test -gcflags=all=-l ./... -v -coverprofile $(CURDIR)/.coverage/coverage-unit.out ## Prohibit inline optimization when using gomonkey
82+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test -gcflags=all=-l $$(go list ./... | grep -v mock | grep -v e2e | grep -v hack) -v -coverprofile $(CURDIR)/.coverage/coverage-unit.out ## Prohibit inline optimization when using gomonkey
8383

8484
##@ Build
8585

pkg/mock/ipaddressallocation/client.go

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)