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

Refactor: Add t.Helper() on test helper function #1935

Merged
merged 11 commits into from
Feb 1, 2023

Conversation

kevindiu
Copy link
Contributor

@kevindiu kevindiu commented Jan 26, 2023

Signed-off-by: kevindiu kevin_diu@yahoo.com.hk

Description:

This PR update beforeFunc and afterFunc on the test to call t.Helper().
It only update the function that is used, the code generated with old test template will not be updated when it is not using.

Related Issue:

Versions:

  • Go Version: 1.19.5
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.9

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Base: 29.99% // Head: 29.97% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (bbf495e) compared to base (589fe4e).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1935      +/-   ##
==========================================
- Coverage   29.99%   29.97%   -0.02%     
==========================================
  Files         366      366              
  Lines       33704    33704              
==========================================
- Hits        10108    10103       -5     
- Misses      23189    23193       +4     
- Partials      407      408       +1     
Impacted Files Coverage Δ
internal/backoff/backoff.go 71.28% <0.00%> (-1.99%) ⬇️
pkg/agent/core/ngt/service/option.go 89.57% <0.00%> (-1.85%) ⬇️
internal/worker/worker.go 81.53% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 26, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: bbf495e
Status: ✅  Deploy successful!
Preview URL: https://032fd3a1.vald.pages.dev
Branch Preview URL: https://refactor-add-helper-func-cal.vald.pages.dev

View logs

Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
@kevindiu kevindiu force-pushed the refactor/add-helper-func-call branch from 487caed to 9de6c54 Compare January 30, 2023 02:24
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
kevindiu and others added 2 commits January 30, 2023 12:41
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
kevindiu and others added 2 commits January 30, 2023 17:39
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
@kevindiu kevindiu changed the title [WIP] Refactor: Add t.Helper() on test helper function Refactor: Add t.Helper() on test helper function Jan 30, 2023
@kevindiu kevindiu marked this pull request as ready for review January 30, 2023 08:52
@kevindiu kevindiu requested review from vankichi and a team January 30, 2023 08:54
@kevindiu kevindiu requested review from hlts2 and removed request for a team January 30, 2023 08:54
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.

LGTM

@kevindiu kevindiu merged commit f529cbd into main Feb 1, 2023
@kevindiu kevindiu deleted the refactor/add-helper-func-call branch February 1, 2023 06:00
This was referenced Feb 8, 2023
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