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

create new test and refactor for errors/option #950

Merged
merged 7 commits into from
Feb 2, 2021

Conversation

vankichi
Copy link
Contributor

@vankichi vankichi commented Jan 25, 2021

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

Description:

I created the new test for internal/errors/option.go.
Also, this PR includes below changes.

  1. add comment each function or something external property.
  2. refactor each Error() method due to panic.

grammar check is completed.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.7
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.13.1

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
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Show resolved Hide resolved
internal/errors/option.go Outdated Show resolved Hide resolved
internal/errors/option.go Outdated Show resolved Hide resolved
@vankichi vankichi changed the title [WIP] create new test and refactor for errors/option create new test and refactor for errors/option Jan 25, 2021
@vankichi vankichi marked this pull request as ready for review January 25, 2021 05:31
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #950 (566a9ea) into master (7e1997a) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #950      +/-   ##
==========================================
+ Coverage   15.19%   15.32%   +0.13%     
==========================================
  Files         492      492              
  Lines       25622    25626       +4     
==========================================
+ Hits         3893     3927      +34     
+ Misses      21487    21457      -30     
  Partials      242      242              
Impacted Files Coverage Δ
internal/errors/option.go 100.00% <100.00%> (+100.00%) ⬆️
internal/worker/worker.go 83.33% <0.00%> (ø)

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 faeea6a...566a9ea. Read the comment docs.

internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@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.

I am sorry... I forgot to comment. 🙇
But I think the others is good 👍
Thank you always 🙇

internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
internal/errors/option_test.go Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/XL and removed size/XL labels Jan 27, 2021
hlts2
hlts2 previously approved these changes Jan 27, 2021
Copy link
Contributor

@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.

Thank you 🙇
LGTM

@vankichi
Copy link
Contributor Author

vankichi commented Feb 1, 2021

/format

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

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

kevindiu
kevindiu previously approved these changes Feb 1, 2021
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

@kevindiu
Copy link
Contributor

kevindiu commented Feb 1, 2021

/format
/rebase
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-option

@vdaas-ci vdaas-ci dismissed stale reviews from kevindiu and hlts2 via 4244bf6 February 1, 2021 09:42
@vdaas-ci vdaas-ci force-pushed the test/internal/add-newtest-for-errors-option branch from 00df149 to 4244bf6 Compare February 1, 2021 09:42
@github-actions github-actions bot added size/XL and removed size/XL labels Feb 1, 2021
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

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

@github-actions github-actions bot removed the size/XL label Feb 1, 2021
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

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

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-option

@vdaas-ci vdaas-ci force-pushed the test/internal/add-newtest-for-errors-option branch from 577cccc to 82cf963 Compare February 1, 2021 09:56
@github-actions github-actions bot added size/XL and removed size/XL labels Feb 1, 2021
@kevindiu
Copy link
Contributor

kevindiu commented Feb 1, 2021

/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

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

@github-actions github-actions bot added size/XL and removed size/XL labels Feb 1, 2021
@kevindiu
Copy link
Contributor

kevindiu commented Feb 1, 2021

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-option

vankichi and others added 7 commits February 1, 2021 22:45
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
@vdaas-ci vdaas-ci force-pushed the test/internal/add-newtest-for-errors-option branch from 1d41e30 to 566a9ea Compare February 1, 2021 22:46
@github-actions github-actions bot added size/XL and removed size/XL labels Feb 1, 2021
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 1, 2021

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

@kevindiu
Copy link
Contributor

kevindiu commented Feb 2, 2021

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 2, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-option

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 2, 2021

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

@kevindiu kevindiu merged commit 956e00c into master Feb 2, 2021
@kevindiu kevindiu deleted the test/internal/add-newtest-for-errors-option branch February 2, 2021 02:06
@vdaas-ci vdaas-ci mentioned this pull request Feb 2, 2021
11 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.

None yet

4 participants