-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix clear kcells #603
Fix clear kcells #603
Conversation
Reviewer's Guide by SourceryThis pull request makes improvements to the clear_kcells function in the Layout object and updates tests accordingly. The main changes include ensuring that all kcels are unlocked before being cleared and adding test assertions to verify that all injected cells are properly destroyed. Updated class diagram for Layout and KCell (clear_kcells modification)classDiagram
class Layout {
- kcells: dict
- tkcells: dict
+ top_kcell(): KCell
+ top_kcells(): list~KCell~
+ clear_kcells(): None
}
class KCell {
+ locked: bool
+ kdb_cell: KdbCell
}
class KdbCell {
+ prune_cell(): None
}
Layout --> "*" KCell : contains
KCell --> KdbCell : manages
note for Layout "In clear_kcells(), added iteration over kcells to unlock each KCell\nby setting locked = false before pruning."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #603 +/- ##
==========================================
+ Coverage 65.94% 65.96% +0.02%
==========================================
Files 64 64
Lines 9643 9644 +1
Branches 1785 1786 +1
==========================================
+ Hits 6359 6362 +3
Misses 2761 2761
+ Partials 523 521 -2 ☔ View full report in Codecov by Sentry. |
Summary by Sourcery
Bug Fixes: