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 internal/worker/queue test #606

Merged
merged 10 commits into from
Aug 6, 2020
Merged

Conversation

vankichi
Copy link
Contributor

@vankichi vankichi commented Jul 31, 2020

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

Description:

There are 2 changes:

  • create test of internal/worker/queue.
  • update comments for each function of internal/worker/queue
    And 1 bug fix:
  • add close(ech) in func(q) Starts() (<-chan error, error)

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.

@pull-assistant
Copy link

pull-assistant bot commented Jul 31, 2020

Score: 0.70

Best reviewed: commit by commit


Optimal code review plan (3 warnings)

✅ create internal/worker/queue test

internal/worker/queue.go 50% changes removed in ✅ f...

✅ add comment

internal/worker/queue.go 71% changes removed in ✅ f...

     ✅ fix

     ✅ fix spell

✅ fix

internal/worker/queue_test.go 50% changes removed in ✅ f...

     ✅ fix

     ✅ fix

     ✅ fix

     ✅ fix

     ✅ fix

Powered by Pull Assistant. Last update 8f0b058 ... 88b3e49. Read the comment docs.

@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

internal/worker/queue.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

Merging #606 into master will increase coverage by 0.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #606      +/-   ##
==========================================
+ Coverage   12.19%   12.57%   +0.38%     
==========================================
  Files         409      409              
  Lines       21340    21341       +1     
==========================================
+ Hits         2602     2684      +82     
+ Misses      18454    18375      -79     
+ Partials      284      282       -2     
Impacted Files Coverage Δ
internal/worker/queue.go 98.55% <100.00%> (+98.55%) ⬆️
internal/worker/queue_option.go 89.47% <0.00%> (+73.68%) ⬆️

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 9cd5fc9...88b3e49. Read the comment docs.

internal/worker/queue_test.go Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
@vankichi vankichi changed the title [WIP] create internal/worker/queue test create internal/worker/queue test Aug 3, 2020
@vankichi vankichi marked this pull request as ready for review August 3, 2020 05:57
@vankichi vankichi requested review from hlts2 and kevindiu August 3, 2020 05:57
internal/worker/queue.go Outdated Show resolved Hide resolved
internal/worker/queue.go Outdated Show resolved Hide resolved
internal/worker/queue.go Outdated Show resolved Hide resolved
internal/worker/queue.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue_test.go Outdated Show resolved Hide resolved
@vankichi vankichi mentioned this pull request Aug 4, 2020
18 tasks
internal/worker/queue_test.go Outdated Show resolved Hide resolved
internal/worker/queue.go Outdated Show resolved Hide resolved
hlts2
hlts2 previously approved these changes Aug 5, 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

kevindiu
kevindiu previously approved these changes Aug 5, 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

@vankichi
Copy link
Contributor Author

vankichi commented Aug 5, 2020

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 5, 2020

[REBASE] Rebase triggered by vankichi for branch: test/internal/worker_queue_test

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>
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 dismissed stale reviews from kevindiu and hlts2 via cb4ac24 August 5, 2020 06:53
@vdaas-ci vdaas-ci force-pushed the test/internal/worker_queue_test branch from 853310c to cb4ac24 Compare August 5, 2020 06:53
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 5, 2020

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

vdaas-ci
vdaas-ci previously approved these changes Aug 5, 2020
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.

Signed-off-by: vankichi <kyukawa315@gmail.com>
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

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

vankichi commented Aug 6, 2020

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[REBASE] Rebase triggered by vankichi for branch: test/internal/worker_queue_test

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[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 5698abc into master Aug 6, 2020
@vankichi vankichi deleted the test/internal/worker_queue_test branch August 6, 2020 01:08
@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