Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add internal/db/rdb/mysql/model test #628

Merged
merged 11 commits into from
Aug 18, 2020
Merged

Conversation

vankichi
Copy link
Contributor

Signed-off-by: vankichi kyukawa315@gmail.com

Description:

  • create test for internal/db/rdb/mysql/model.go
  • add comment each function/exported variables for internal/db/rdb/mysql/model.go

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.14.4
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.0

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master

@codecov
Copy link

codecov bot commented Aug 18, 2020

Codecov Report

Merging #628 into master will increase coverage by 2.01%.
The diff coverage is 10.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #628      +/-   ##
==========================================
+ Coverage   12.19%   14.20%   +2.01%     
==========================================
  Files         409      408       -1     
  Lines       21340    21456     +116     
==========================================
+ Hits         2602     3048     +446     
+ Misses      18454    18136     -318     
+ Partials      284      272      -12     
Impacted Files Coverage Δ
internal/compress/gzip_option.go 84.61% <ø> (+15.38%) ⬆️
internal/compress/lz4_option.go 84.61% <ø> (+15.38%) ⬆️
internal/compress/zstd_option.go 81.81% <ø> (ø)
internal/db/kvs/redis/option.go 100.00% <ø> (+91.42%) ⬆️
internal/db/rdb/mysql/option.go 100.00% <ø> (+95.34%) ⬆️
internal/errors/net.go 0.00% <ø> (ø)
internal/info/info.go 29.16% <ø> (ø)
internal/worker/queue_option.go 100.00% <ø> (+84.21%) ⬆️
pkg/tools/cli/loadtest/assets/loader.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/config/config.go 0.00% <0.00%> (ø)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95fb5c5...0a3123f. Read the comment docs.

kevindiu
kevindiu previously approved these changes Aug 18, 2020
Copy link
Contributor

@kevindiu kevindiu left a comment

Choose a reason for hiding this comment

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

LGTM

internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
internal/db/rdb/mysql/model_test.go Outdated Show resolved Hide resolved
kevindiu
kevindiu previously approved these changes Aug 18, 2020
hlts2
hlts2 previously approved these changes Aug 18, 2020
Copy link
Collaborator

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

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

LGTM

@vankichi
Copy link
Contributor Author

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by vankichi for branch: test/internal/db/rdb-mysql-model

vankichi and others added 10 commits August 18, 2020 12:40
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
@vdaas-ci vdaas-ci dismissed stale reviews from hlts2 and kevindiu via 3d0af7b August 18, 2020 12:40
@vdaas-ci vdaas-ci force-pushed the test/internal/db/rdb-mysql-model branch from 2b7e836 to 3d0af7b Compare August 18, 2020 12:40
@vdaas-ci
Copy link
Collaborator

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by vankichi.

@vankichi vankichi merged commit cd8be5b into master Aug 18, 2020
@vankichi vankichi deleted the test/internal/db/rdb-mysql-model branch August 18, 2020 13:06
@vdaas-ci vdaas-ci mentioned this pull request Sep 2, 2020
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants