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 test for k8s plugin's toolregistry #5246

Merged
merged 5 commits into from
Oct 2, 2024

Conversation

Warashi
Copy link
Contributor

@Warashi Warashi commented Oct 1, 2024

What this PR does / why we need it:

  • Add toolregistry impl for test.
  • Add test for k8s plugin's toolregistry

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 48.10127% with 41 lines in your changes missing coverage. Please review.

Project coverage is 24.05%. Comparing base (077b7b6) to head (a6079c7).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
.../toolregistry/toolregistrytest/toolregistrytest.go 44.59% 28 Missing and 13 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5246      +/-   ##
==========================================
+ Coverage   23.96%   24.05%   +0.09%     
==========================================
  Files         438      439       +1     
  Lines       47017    46957      -60     
==========================================
+ Hits        11267    11297      +30     
+ Misses      34846    34756      -90     
  Partials      904      904              
Flag Coverage Δ
24.05% <48.10%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

t-kikuc
t-kikuc previously approved these changes Oct 1, 2024
Copy link
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

only v1

// See the License for the specific language governing permissions and
// limitations under the License.

package toolregistry_test
Copy link
Member

Choose a reason for hiding this comment

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

we usually not create test package, just keep it package toolregistry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed on a6079c7

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

👍

@Warashi Warashi merged commit 38d647a into master Oct 2, 2024
17 checks passed
@Warashi Warashi deleted the pipedv1-plugin-toolregistry-mock branch October 2, 2024 07:43
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.

3 participants