-
-
Notifications
You must be signed in to change notification settings - Fork 21
Implement the missed test case from codecov #3005
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 the missed test case from codecov #3005
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3005 +/- ##
==========================================
+ Coverage 41.70% 42.53% +0.83%
==========================================
Files 899 899
Lines 56387 56454 +67
==========================================
+ Hits 23516 24014 +498
+ Misses 32871 32440 -431
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
native/acter/api.rsh
Outdated
/// update builder | ||
fn update_builder() -> Result<CommentUpdateBuilder>; | ||
|
||
/// replace the current task with one with the latest state | ||
fn refresh() -> Future<Result<Comment>>; | ||
|
||
/// whether or not this user can redact this item | ||
fn can_redact() -> Future<Result<bool>>; | ||
} | ||
|
||
object CommentUpdateBuilder { | ||
/// set description text | ||
fn content_text(body: string); | ||
|
||
/// set description html text | ||
fn content_formatted(body: string, html_body: string); | ||
|
||
/// send builder update | ||
fn send() -> Future<Result<EventId>>; | ||
} | ||
|
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.
Our UI currently doesn't have any notion of updating comments and having updated comments (like we don't have notifications nor activities for those either), I am not sure we want to expose this API yet...
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.
Fixed by 2c274fd
assert_eq!(cal_events.len(), 3); | ||
let main_event = cal_events.first().expect("main event should be available"); | ||
|
||
let locations = main_event.locations(); |
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.
👍
But we will keep core module and test fn for comment update. |
api.rsh
too