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

test: refine and improve pkg/utils unit test coverage to 82.3% #1054

Merged
merged 26 commits into from
Sep 23, 2020

Conversation

csuzhangxc
Copy link
Member

What problem does this PR solve?

part of #998

What is changed and how it works?

  • add unit test cases
  • tiny refine code

Check List

Tests

  • Unit test
  • Integration test

Code changes

  • Has exported function/method change

Side effects

Related changes

  • Need to cherry-pick to the release branch

@csuzhangxc csuzhangxc added priority/normal Minor change, requires approval from ≥1 primary reviewer status/WIP This PR is still work in progress labels Sep 17, 2020
@csuzhangxc
Copy link
Member Author

/run-all-tests

1 similar comment
@csuzhangxc
Copy link
Member Author

/run-all-tests

Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM

Makefile Outdated Show resolved Hide resolved
Co-authored-by: lance6716 <lance6716@gmail.com>
@csuzhangxc csuzhangxc changed the title test: improve pkg/utils unit test coverage and tiny refine [WIP] test: improve pkg/utils unit test coverage and tiny refine Sep 17, 2020
@csuzhangxc csuzhangxc changed the title [WIP] test: improve pkg/utils unit test coverage and tiny refine test: refine and improve pkg/utils unit test coverage to 82.3$ Sep 22, 2020
@csuzhangxc csuzhangxc changed the title test: refine and improve pkg/utils unit test coverage to 82.3$ test: refine and improve pkg/utils unit test coverage to 82.3% Sep 22, 2020
@csuzhangxc csuzhangxc added status/PTAL This PR is ready for review. Add this label back after committing new changes and removed status/WIP This PR is still work in progress labels Sep 22, 2020
Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM

pkg/utils/db_test.go Show resolved Hide resolved
@lance6716
Copy link
Collaborator

LGTM

@ti-srebot ti-srebot added the status/LGT1 One reviewer already commented LGTM label Sep 23, 2020
Copy link
Collaborator

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GMHDBJD GMHDBJD added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM status/PTAL This PR is ready for review. Add this label back after committing new changes labels Sep 23, 2020
@csuzhangxc csuzhangxc merged commit ee6c6c2 into pingcap:master Sep 23, 2020
@csuzhangxc csuzhangxc deleted the ut-cov-util branch September 23, 2020 07:06
@csuzhangxc csuzhangxc added the needs-cherry-pick-release-2.0 This PR should be cherry-picked to release-2.0. Remove this label after cherry-picked to release-2.0 label Sep 23, 2020
@csuzhangxc
Copy link
Member Author

/run-cherry-picker

@ti-srebot
Copy link

cherry pick to release-2.0 in PR #1080

@ti-srebot ti-srebot added already-cherry-pick-2.0 The related PR is already cherry-picked to release-2.0. Add this label once the PR is cherry-picked and removed needs-cherry-pick-release-2.0 This PR should be cherry-picked to release-2.0. Remove this label after cherry-picked to release-2.0 labels Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
already-cherry-pick-2.0 The related PR is already cherry-picked to release-2.0. Add this label once the PR is cherry-picked priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT2 Two reviewers already commented LGTM, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants