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/cache/gache test #583

Merged
merged 6 commits into from
Jul 16, 2020
Merged

add internal/cache/gache test #583

merged 6 commits into from
Jul 16, 2020

Conversation

vankichi
Copy link
Contributor

Signed-off-by: vankichi [email protected]

Description:

I added test of internal/cache/gache/gache.go and updated function comment about internal/cache/gache/gache.go.
Also, a bit fix in internal/cache/gache/option_test.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.

@vankichi vankichi requested review from kevindiu and hlts2 July 15, 2020 07:11
@pull-assistant
Copy link

pull-assistant bot commented Jul 15, 2020

Score: 0.94

Best reviewed: commit by commit


Optimal code review plan (2 commits squashed)

     ✅ add internal/cache/gache test

     ♻️ updatee checkFunc

     ♻️ fix

♻️ fix ... ♻️ fix

Squashed 2 commits:

     ♻️ fix

Powered by Pull Assistant. Last update 1ced5aa ... 132b272. 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

@codecov
Copy link

codecov bot commented Jul 15, 2020

Codecov Report

Merging #583 into master will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
+ Coverage   10.96%   11.08%   +0.11%     
==========================================
  Files         403      403              
  Lines       20930    20930              
==========================================
+ Hits         2296     2320      +24     
+ Misses      18365    18341      -24     
  Partials      269      269              
Impacted Files Coverage Δ
internal/cache/gache/gache.go 100.00% <ø> (+100.00%) ⬆️
internal/errgroup/group.go 93.42% <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 380c99e...132b272. Read the comment docs.

kevindiu
kevindiu previously approved these changes Jul 15, 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

hlts2
hlts2 previously approved these changes Jul 16, 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 Jul 16, 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

Signed-off-by: vankichi <[email protected]>
@vankichi vankichi dismissed stale reviews from kevindiu and hlts2 via 1841dbe July 16, 2020 06:35
Signed-off-by: vankichi <[email protected]>
Signed-off-by: vankichi <[email protected]>
hlts2
hlts2 previously approved these changes Jul 16, 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

internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
internal/cache/gache/gache_test.go Outdated Show resolved Hide resolved
Signed-off-by: vankichi <[email protected]>
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

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by vankichi for branch: test/internal/cache-gache

@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 ba21911 into master Jul 16, 2020
@vankichi vankichi deleted the test/internal/cache-gache branch July 16, 2020 08:08
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