CECTC / dbpack

A db proxy for distributed transaction, read write splitting and sharding! Support any language! It can be deployed as a sidecar in a pod.
https://cectc.github.io/dbpack-doc/#/en-us/
Apache License 2.0
357 stars 46 forks source link

unit-test: test merge result #241

Closed dk-lockdown closed 2 years ago

dk-lockdown commented 2 years ago

ref: https://github.com/cectc/dbpack/issues/

Ⅰ. Describe what this PR did

Unit test with testcontainers

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

codecov-commenter commented 2 years ago

Codecov Report

Merging #241 (09868f5) into dev (1b4e902) will increase coverage by 2.31%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #241      +/-   ##
==========================================
+ Coverage   40.37%   42.69%   +2.31%     
==========================================
  Files          82       82              
  Lines        9785     9785              
==========================================
+ Hits         3951     4178     +227     
+ Misses       5414     5172     -242     
- Partials      420      435      +15     
Impacted Files Coverage Δ
pkg/plan/result.go 58.05% <100.00%> (+58.05%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more