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 tests for pipedv1 executor package #5303

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Conversation

khanhtc1202
Copy link
Member

What this PR does:

as title

Why we need it:

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: khanhtc1202 <khanhtc1202@gmail.com>
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.22%. Comparing base (fa30a1d) to head (50f2ec5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5303      +/-   ##
==========================================
+ Coverage   25.11%   25.22%   +0.10%     
==========================================
  Files         444      444              
  Lines       47469    47470       +1     
==========================================
+ Hits        11924    11976      +52     
+ Misses      34604    34553      -51     
  Partials      941      941              

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


for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
tc.got = DetermineStageStatus(tc.sig, tc.ori, tc.got)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tc.got = DetermineStageStatus(tc.sig, tc.ori, tc.got)
got := DetermineStageStatus(tc.sig, tc.ori, tc.got)

How about removing tc.got? Is it impossible?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, that was my mistake 🙏

Copy link
Member

Choose a reason for hiding this comment

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

thank you,
hahaha, I didn't notice DetermineStageStatus(sig StopSignalType, ori, got model.StageStatus) has got too, I was confused.

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Copy link
Contributor

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

👍🏻

@khanhtc1202 khanhtc1202 merged commit 3a264cc into master Nov 1, 2024
18 checks passed
@khanhtc1202 khanhtc1202 deleted the add-executor-pkg-tests branch November 1, 2024 00:06
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