Skip to content

Commit f20d5b6

Browse files
committed
Generate Stringer representation using new versions, omit from test coverage
1 parent fc3b25b commit f20d5b6

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ else
2929
go test -v -race -coverprofile=cover-int.out -covermode=atomic -tags=integration -exec sudo ./...
3030
endif
3131

32+
# Remove coverage output from files generated by Stringer.
33+
sed -i '/_string.go/d' cover-int.out
34+
go tool cover -func=cover-int.out
35+
3236
.PHONY: coverhtml-integration
3337
coverhtml-integration: integration
3438
go tool cover -html=cover-int.out
@@ -44,6 +48,8 @@ bench-integration:
4448
cover: cover.out
4549
cover.out: $(SOURCES)
4650
go test -coverprofile=cover.out -covermode=atomic ./...
51+
# Remove coverage output from files generated by Stringer.
52+
sed -i '/_string.go/d' cover.out
4753
go tool cover -func=cover.out
4854

4955
.PHONY: coverhtml

protofamily_string.go

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

subsystemid_string.go

Lines changed: 19 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)