Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#779 from zhengxiexie/zhengxie/ipadd-ut
Browse files Browse the repository at this point in the history
Add unit test for ipaddressallocation
  • Loading branch information
zhengxiexie authored Sep 27, 2024
2 parents cfe816c + 3128793 commit 6202688
Show file tree
Hide file tree
Showing 4 changed files with 671 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ golangci-fix: $(GOLANGCI_LINT_BIN)

.PHONY: test
test: manifests generate fmt vet envtest .coverage ## Run tests .
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
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

##@ Build

Expand Down
109 changes: 109 additions & 0 deletions pkg/mock/ipaddressallocation/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6202688

Please sign in to comment.