swh:1:snp:8a1bf80ec89c62a71cdcaaf0c2f9145695a5340a
Revision f96000e15d5c11132886709c72491eaf7806c96d authored by Wei Fu on 17 October 2023, 13:35:31 UTC, committed by Wei Fu on 17 October 2023, 13:47:23 UTC
The #15544 has removed the `build_cov` build. And after go1.20, we use
`-cover` buildflag to enable coverage exporter. We don't need to
maintain main_test.go anymore.

```bash
➜  pwd
/home/fuwei/go/src/go.etcd.io/etcd/etcdctl

➜  go build -o /tmp/etcdctl -cover ./

➜  mkdir /tmp/etcdctl-covdata

➜  GOCOVERDIR=/tmp/etcdctl-covdata /tmp/etcdctl get /health

➜  go tool covdata percent -i=/tmp/etcdctl-covdata
        go.etcd.io/etcd/etcdctl/v3      coverage: 66.7% of statements
        go.etcd.io/etcd/etcdctl/v3/ctlv3        coverage: 83.3% of statements
        go.etcd.io/etcd/etcdctl/v3/ctlv3/command        coverage: 15.4% of statements
```

REF: https://go.dev/testing/coverage/

Signed-off-by: Wei Fu <fuweid89@gmail.com>
1 parent be83fff
History
Tip revision: d3abeeca4713314c64874fdecf33e2649ce9e417 authored by James Blair on 10 April 2024, 07:48:53 UTC
Merge pull request #17755 from ivanvc/rw-individual-benchmark
Tip revision: d3abeec
File Mode Size
.devcontainer
.github
CHANGELOG
Documentation
api
client
contrib
etcdctl
etcdutl
hack
logos
pkg
scripts
security
server
tests
tools
.gitignore -rw-r--r-- 672 bytes
.go-version -rw-r--r-- 7 bytes
.header -rw-r--r-- 593 bytes
ADOPTERS.md -rw-r--r-- 9.7 KB
CONTRIBUTING.md -rw-r--r-- 7.6 KB
DCO -rw-r--r-- 1.4 KB
Dockerfile -rw-r--r-- 277 bytes
GOVERNANCE.md -rw-r--r-- 1.7 KB
LICENSE -rw-r--r-- 11.1 KB
MAINTAINERS -rw-r--r-- 983 bytes
Makefile -rw-r--r-- 4.3 KB
OWNERS -rw-r--r-- 628 bytes
Procfile -rw-r--r-- 2.6 KB
README.md -rw-r--r-- 8.7 KB
bill-of-materials.json -rw-r--r-- 11.9 KB
bill-of-materials.override.json -rw-r--r-- 254 bytes
code-of-conduct.md -rw-r--r-- 143 bytes
codecov.yml -rw-r--r-- 428 bytes
dummy.go -rw-r--r-- 1.0 KB
etcd.conf.yml.sample -rw-r--r-- 3.9 KB
go.mod -rw-r--r-- 4.3 KB
go.sum -rw-r--r-- 26.5 KB

README.md

back to top