Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

test: improve unit test coverage for v2.0 GA #998

Open
35 of 67 tasks
GMHDBJD opened this issue Sep 7, 2020 · 2 comments
Open
35 of 67 tasks

test: improve unit test coverage for v2.0 GA #998

GMHDBJD opened this issue Sep 7, 2020 · 2 comments
Labels
type/test Changes related to test cases

Comments

@GMHDBJD
Copy link
Collaborator

GMHDBJD commented Sep 7, 2020

Feature Request

Is your feature request related to a problem? Please describe:

improve unit test coverage
Describe alternatives you've considered:

  • github.com/pingcap/dm/checker 0.209s coverage: 4.4% of statements, gmhdbjd
  • github.com/pingcap/dm/debug-tools/binlog-event-blackhole [no test files]
  • github.com/pingcap/dm/dm/command [no test files], lance6716
  • github.com/pingcap/dm/dm/common 0.126s coverage: 65.6% of statements, gmhdbjd
  • github.com/pingcap/dm/dm/config 0.478s coverage: 61.8% of statements, lance6716
  • github.com/pingcap/dm/dm/ctl [no test files]
  • github.com/pingcap/dm/dm/ctl/common [no test files]
  • github.com/pingcap/dm/dm/ctl/master 0.186s coverage: 3.4% of statements
  • github.com/pingcap/dm/dm/master 72.952s coverage: 61.4% of statements
  • github.com/pingcap/dm/dm/master/shardddl 82.999s coverage: 80.4% of statements
  • github.com/pingcap/dm/dm/master/workerrpc [no test files], csuzhangxc
  • github.com/pingcap/dm/dm/portal 0.260s coverage: 69.1% of statements
  • github.com/pingcap/dm/dm/portal/statik [no test files]
  • github.com/pingcap/dm/dm/tracer 0.215s coverage: 71.0% of statements
  • github.com/pingcap/dm/dm/unit 0.144s coverage: 0.0% of statements [no tests to run], gmhdbjd
  • github.com/pingcap/dm/dm/worker 42.585s coverage: 76.9% of statements
  • github.com/pingcap/dm/dumpling 0.216s coverage: 52.4% of statements
  • github.com/pingcap/dm/loader 4.170s coverage: 26.7% of statements
  • github.com/pingcap/dm/mydumper 0.149s coverage: 39.5% of statements
  • github.com/pingcap/dm/pkg/atomic2 0.085s coverage: 100.0% of statements
  • github.com/pingcap/dm/pkg/backoff 0.098s coverage: 100.0% of statements
  • github.com/pingcap/dm/pkg/binlog 0.158s coverage: 78.6% of statements
  • github.com/pingcap/dm/pkg/binlog/common 0.111s coverage: 41.7% of statements, gmhdbjd
  • github.com/pingcap/dm/pkg/binlog/event 0.194s coverage: 79.5% of statements
  • github.com/pingcap/dm/pkg/binlog/reader 17.176s coverage: 84.9% of statements
  • github.com/pingcap/dm/pkg/binlog/writer 0.188s coverage: 85.2% of statements
  • github.com/pingcap/dm/pkg/conn 0.096s coverage: 57.5% of statements, lance6716
  • github.com/pingcap/dm/pkg/context [no test files]
  • github.com/pingcap/dm/pkg/cputil [no test files]
  • github.com/pingcap/dm/pkg/dumpling 0.132s coverage: 80.0% of statements
  • github.com/pingcap/dm/pkg/election 10.972s coverage: 85.0% of statements
  • github.com/pingcap/dm/pkg/encrypt 0.140s coverage: 91.2% of statements
  • github.com/pingcap/dm/pkg/etcdutil 16.516s coverage: 17.1% of statements, csuzhangxc
  • github.com/pingcap/dm/pkg/func-rollback 0.100s coverage: 100.0% of statements
  • github.com/pingcap/dm/pkg/gtid 0.119s coverage: 86.9% of statements
  • github.com/pingcap/dm/pkg/ha 26.832s coverage: 80.5% of statements
  • github.com/pingcap/dm/pkg/helper 0.123s coverage: 100.0% of statements
  • github.com/pingcap/dm/pkg/log 0.116s coverage: 23.1% of statements, gmhdbjd
  • github.com/pingcap/dm/pkg/metricsproxy 0.058s coverage: 100.0% of statements
  • github.com/pingcap/dm/pkg/parser 0.132s coverage: 87.4% of statements
  • github.com/pingcap/dm/pkg/retry 7.100s coverage: 81.2% of statements
  • github.com/pingcap/dm/pkg/schema 22.046s coverage: 82.1% of statements
  • github.com/pingcap/dm/pkg/shardddl/optimism 15.002s coverage: 84.8% of statements
  • github.com/pingcap/dm/pkg/shardddl/pessimism 4.643s coverage: 80.8% of statements
  • github.com/pingcap/dm/pkg/streamer 12.567s coverage: 90.5% of statements
  • github.com/pingcap/dm/pkg/terror 0.128s coverage: 98.1% of statements
  • github.com/pingcap/dm/pkg/tracing 0.104s coverage: 69.2% of statements
  • github.com/pingcap/dm/pkg/upgrade 2.628s coverage: 84.0% of statements
  • github.com/pingcap/dm/pkg/utils 0.233s coverage: 28.0% of statements, csuzhangxc
  • github.com/pingcap/dm/pkg/v1dbschema 3.094s coverage: 71.6% of statements
  • github.com/pingcap/dm/pkg/v1workermeta 2.644s coverage: 85.4% of statements
  • github.com/pingcap/dm/relay 8.409s coverage: 59.4% of statements
  • github.com/pingcap/dm/relay/common 0.104s coverage: 90.0% of statements
  • github.com/pingcap/dm/relay/purger 8.100s coverage: 79.5% of statements
  • github.com/pingcap/dm/relay/reader 0.111s coverage: 100.0% of statements
  • github.com/pingcap/dm/relay/retry 5.156s coverage: 94.4% of statements
  • github.com/pingcap/dm/relay/transformer 0.091s coverage: 100.0% of statements
  • github.com/pingcap/dm/relay/writer 18.701s coverage: 89.4% of statements
  • github.com/pingcap/dm/syncer 41.871s coverage: 44.4% of statements
  • github.com/pingcap/dm/syncer/err-operator 0.090s coverage: 85.1% of statements
  • github.com/pingcap/dm/syncer/safe-mode 0.065s coverage: 82.4% of statements
  • github.com/pingcap/dm/syncer/shardddl 3.636s coverage: 91.3% of statements
  • github.com/pingcap/dm/syncer/sharding-meta 0.100s coverage: 94.4% of statements
  • github.com/pingcap/dm/syncer/checkpoint.go 71.6%, lance6716
  • github.com/pingcap/dm/syncer/error.go 47.6%, lance6716
  • github.com/pingcap/dm/syncer/sharding_group.go 13.5% lance6716
  • github.com/pingcap/dm/syncer/ddl.go 36% lance6716
@lance6716

This comment has been minimized.

@lance6716
Copy link
Collaborator

coverage under syncer after #1109

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/test Changes related to test cases
Projects
None yet
Development

No branches or pull requests

2 participants