Skip to content

Instantly share code, notes, and snippets.

@gouthamve
Created April 27, 2020 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gouthamve/a8384d8e17055631107c588bb4f1ef2f to your computer and use it in GitHub Desktop.
Save gouthamve/a8384d8e17055631107c588bb4f1ef2f to your computer and use it in GitHub Desktop.
Cortex coverage
➜ cortex git:(master) ✗ go test -cover ./...
ok github.com/cortexproject/cortex/cmd/cortex (cached) coverage: 67.6% of statements
ok github.com/cortexproject/cortex/cmd/query-tee (cached) coverage: 68.3% of statements
? github.com/cortexproject/cortex/cmd/test-exporter [no test files]
? github.com/cortexproject/cortex/integration [no test files]
? github.com/cortexproject/cortex/integration/e2e [no test files]
? github.com/cortexproject/cortex/integration/e2e/cache [no test files]
? github.com/cortexproject/cortex/integration/e2e/db [no test files]
? github.com/cortexproject/cortex/integration/e2e/images [no test files]
? github.com/cortexproject/cortex/integration/e2ecortex [no test files]
ok github.com/cortexproject/cortex/pkg/alertmanager (cached) coverage: 53.0% of statements
? github.com/cortexproject/cortex/pkg/alertmanager/alerts [no test files]
? github.com/cortexproject/cortex/pkg/alertmanager/alerts/configdb [no test files]
? github.com/cortexproject/cortex/pkg/alertmanager/alerts/local [no test files]
? github.com/cortexproject/cortex/pkg/api [no test files]
ok github.com/cortexproject/cortex/pkg/chunk (cached) coverage: 78.2% of statements
ok github.com/cortexproject/cortex/pkg/chunk/aws (cached) coverage: 48.4% of statements
? github.com/cortexproject/cortex/pkg/chunk/azure [no test files]
ok github.com/cortexproject/cortex/pkg/chunk/cache (cached) coverage: 60.4% of statements
ok github.com/cortexproject/cortex/pkg/chunk/cassandra (cached) coverage: 8.5% of statements
ok github.com/cortexproject/cortex/pkg/chunk/encoding (cached) coverage: 58.2% of statements
? github.com/cortexproject/cortex/pkg/chunk/gcp [no test files]
ok github.com/cortexproject/cortex/pkg/chunk/local (cached) coverage: 36.4% of statements
? github.com/cortexproject/cortex/pkg/chunk/objectclient [no test files]
? github.com/cortexproject/cortex/pkg/chunk/openstack [no test files]
ok github.com/cortexproject/cortex/pkg/chunk/purger (cached) coverage: 51.3% of statements
ok github.com/cortexproject/cortex/pkg/chunk/storage (cached) coverage: 49.8% of statements
? github.com/cortexproject/cortex/pkg/chunk/testutils [no test files]
? github.com/cortexproject/cortex/pkg/chunk/util [no test files]
ok github.com/cortexproject/cortex/pkg/compactor (cached) coverage: 76.9% of statements
? github.com/cortexproject/cortex/pkg/configs [no test files]
ok github.com/cortexproject/cortex/pkg/configs/api (cached) coverage: 53.5% of statements
ok github.com/cortexproject/cortex/pkg/configs/client (cached) coverage: 21.6% of statements
? github.com/cortexproject/cortex/pkg/configs/db [no test files]
? github.com/cortexproject/cortex/pkg/configs/db/dbtest [no test files]
? github.com/cortexproject/cortex/pkg/configs/db/memory [no test files]
? github.com/cortexproject/cortex/pkg/configs/db/postgres [no test files]
ok github.com/cortexproject/cortex/pkg/configs/legacy_promql (cached) coverage: 86.4% of statements
ok github.com/cortexproject/cortex/pkg/configs/userconfig (cached) coverage: 51.9% of statements
ok github.com/cortexproject/cortex/pkg/cortex 0.549s coverage: 37.5% of statements
ok github.com/cortexproject/cortex/pkg/distributor (cached) coverage: 64.3% of statements
? github.com/cortexproject/cortex/pkg/flusher [no test files]
ok github.com/cortexproject/cortex/pkg/ingester (cached) coverage: 69.4% of statements
ok github.com/cortexproject/cortex/pkg/ingester/client (cached) coverage: 8.7% of statements
ok github.com/cortexproject/cortex/pkg/ingester/index (cached) coverage: 81.8% of statements
ok github.com/cortexproject/cortex/pkg/prom1/storage/metric (cached) coverage: 66.7% of statements
ok github.com/cortexproject/cortex/pkg/querier 12.218s coverage: 66.8% of statements
ok github.com/cortexproject/cortex/pkg/querier/astmapper (cached) coverage: 63.1% of statements
ok github.com/cortexproject/cortex/pkg/querier/batch (cached) coverage: 85.6% of statements
? github.com/cortexproject/cortex/pkg/querier/chunkstore [no test files]
ok github.com/cortexproject/cortex/pkg/querier/frontend (cached) coverage: 56.7% of statements
ok github.com/cortexproject/cortex/pkg/querier/iterators (cached) coverage: 84.5% of statements
? github.com/cortexproject/cortex/pkg/querier/lazyquery [no test files]
ok github.com/cortexproject/cortex/pkg/querier/queryrange (cached) coverage: 46.5% of statements
ok github.com/cortexproject/cortex/pkg/querier/series (cached) coverage: 60.5% of statements
ok github.com/cortexproject/cortex/pkg/ring (cached) coverage: 58.8% of statements
ok github.com/cortexproject/cortex/pkg/ring/client (cached) coverage: 76.2% of statements
ok github.com/cortexproject/cortex/pkg/ring/kv (cached) coverage: 1.0% of statements
? github.com/cortexproject/cortex/pkg/ring/kv/codec [no test files]
ok github.com/cortexproject/cortex/pkg/ring/kv/consul (cached) coverage: 35.7% of statements
? github.com/cortexproject/cortex/pkg/ring/kv/etcd [no test files]
ok github.com/cortexproject/cortex/pkg/ring/kv/memberlist (cached) coverage: 51.4% of statements
? github.com/cortexproject/cortex/pkg/ring/testutils [no test files]
ok github.com/cortexproject/cortex/pkg/ruler (cached) coverage: 16.9% of statements
ok github.com/cortexproject/cortex/pkg/ruler/legacy_rulefmt (cached) coverage: 91.0% of statements
ok github.com/cortexproject/cortex/pkg/ruler/rules (cached) coverage: 4.2% of statements
? github.com/cortexproject/cortex/pkg/ruler/rules/objectclient [no test files]
? github.com/cortexproject/cortex/pkg/storage/backend/azure [no test files]
? github.com/cortexproject/cortex/pkg/storage/backend/filesystem [no test files]
? github.com/cortexproject/cortex/pkg/storage/backend/gcs [no test files]
? github.com/cortexproject/cortex/pkg/storage/backend/s3 [no test files]
ok github.com/cortexproject/cortex/pkg/storage/tsdb (cached) coverage: 62.6% of statements
ok github.com/cortexproject/cortex/pkg/storegateway (cached) coverage: 83.2% of statements
? github.com/cortexproject/cortex/pkg/storegateway/storegatewaypb [no test files]
ok github.com/cortexproject/cortex/pkg/testexporter/correctness (cached) coverage: 7.2% of statements
ok github.com/cortexproject/cortex/pkg/util (cached) coverage: 40.4% of statements
? github.com/cortexproject/cortex/pkg/util/chunkcompat [no test files]
ok github.com/cortexproject/cortex/pkg/util/extract (cached) coverage: 58.8% of statements
ok github.com/cortexproject/cortex/pkg/util/flagext (cached) coverage: 51.5% of statements
? github.com/cortexproject/cortex/pkg/util/grpc [no test files]
ok github.com/cortexproject/cortex/pkg/util/grpc/healthcheck (cached) coverage: 55.6% of statements
ok github.com/cortexproject/cortex/pkg/util/grpcclient (cached) coverage: 20.5% of statements
ok github.com/cortexproject/cortex/pkg/util/limiter (cached) coverage: 97.2% of statements
? github.com/cortexproject/cortex/pkg/util/middleware [no test files]
ok github.com/cortexproject/cortex/pkg/util/push (cached) coverage: 47.4% of statements
ok github.com/cortexproject/cortex/pkg/util/runtimeconfig (cached) coverage: 79.7% of statements
ok github.com/cortexproject/cortex/pkg/util/services (cached) coverage: 90.3% of statements
ok github.com/cortexproject/cortex/pkg/util/spanlogger (cached) coverage: 72.4% of statements
? github.com/cortexproject/cortex/pkg/util/test [no test files]
ok github.com/cortexproject/cortex/pkg/util/validation (cached) coverage: 56.0% of statements
ok github.com/cortexproject/cortex/tools/doc-generator (cached) coverage: 6.5% of statements
? github.com/cortexproject/cortex/tools/query-audit [no test files]
? github.com/cortexproject/cortex/tools/website [no test files]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment