-
Notifications
You must be signed in to change notification settings - Fork 78
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
Implement generic function tests #2008
Conversation
[CHATOPS:HELP] ChatOps commands.
|
@@ -17,7 +17,7 @@ import ( | |||
"context" | |||
|
|||
"github.com/vdaas/vald/apis/grpc/v1/payload" | |||
"github.com/vdaas/vald/internal/net/grpc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to fix cycle import
/gen-test |
[GEN TEST] Generating missing test files triggered by kevindiu. |
type want struct { | ||
want []int | ||
} | ||
type test struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
govet: fieldalignment: struct with 88 pointer bytes could be 72
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
} | ||
|
||
func TestSortFunc(t *testing.T) { | ||
type args struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
govet: fieldalignment: struct with 32 pointer bytes could be 16
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
[GEN TEST] Generating missing test files triggered by kevindiu. |
|
||
obj := i.(*payload.Insert_Request) | ||
if insertReqs[recvIdx] != nil { | ||
obj.Vector = insertReqs[recvIdx].Vector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
ruleguard: Avoid to access struct fields directly (gocritic)
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #2008 +/- ##
==========================================
+ Coverage 29.36% 29.48% +0.11%
==========================================
Files 366 366
Lines 34532 34532
==========================================
+ Hits 10141 10182 +41
+ Misses 23972 23926 -46
- Partials 419 424 +5 see 6 files with indirect coverage changes 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 in Codecov by Sentry. |
Deploying with Cloudflare Pages
|
/gen-test |
[GEN TEST] Generating missing test files triggered by kevindiu. |
1 similar comment
[GEN TEST] Generating missing test files triggered by kevindiu. |
/gen-test |
[GEN TEST] Generating missing test files triggered by kevindiu. |
/gen-test |
[GEN TEST] Generating missing test files triggered by kevindiu. |
[GEN TEST] Failed to generate tests. Error: |
[GEN TEST] Generating missing test files triggered by kevindiu. |
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
0522ed8
to
7786ab9
Compare
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[FOSSA] The scan result will be available at https://app.fossa.com/projects/custom%2B21465%2Fvald/refs/branch/test%2Fimpl-generic-tests/c7a62e141ab704977fae6552697ba68fda763e9d |
Profile Report
|
Description:
This PR implemented the generic function tests removed in this commit.
baf038d
Related Issue:
Versions:
Checklist:
Special notes for your reviewer: