-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iimprove batch consumer error handling
- Loading branch information
Ravi Atluri
committed
Nov 14, 2024
1 parent
892741b
commit b556d7e
Showing
7 changed files
with
153 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,12 @@ test-cov: gocov | |
test-xml: test-cov gocov-xml | ||
@jq -n '{ Packages: [ inputs.Packages ] | add }' $(shell find . -type f -name 'coverage.json' | sort) | $(GOCOVXML) > coverage.xml | ||
|
||
.PHONY: test-html | ||
|
||
test-html: test-cov gocov-html | ||
@jq -n '{ Packages: [ inputs.Packages ] | add }' $(shell find . -type f -name 'coverage.json' | sort) | $(GOCOVHTML) -t kit -r > coverage.html | ||
@open coverage.html | ||
|
||
.PHONY: check | ||
check: fmt vet imports lint | ||
@git diff --quiet || test $$(git diff --name-only | grep -v -e 'go.mod$$' -e 'go.sum$$' | wc -l) -eq 0 || ( echo "The following changes (result of code generators and code checks) have been detected:" && git --no-pager diff && false ) # fail if Git working tree is dirty | ||
|
@@ -84,6 +90,10 @@ GOCOVXML = $(BIN_DIR)/gocov-xml | |
gocov-xml: | ||
$(call go-get-tool,$(GOCOVXML),github.com/AlekSi/[email protected]) | ||
|
||
GOCOVHTML = $(BIN_DIR)/gocov-html | ||
gocov-html: | ||
$(call go-get-tool,$(GOCOVHTML),github.com/matm/gocov-html/cmd/[email protected]) | ||
|
||
MOCKERY = $(BIN_DIR)/mockery | ||
mockery: | ||
$(call go-get-tool,$(MOCKERY),github.com/vektra/mockery/[email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters