Skip to content

Add 2 functions: get_row_outline_level and get_row_height #22

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

Merged
merged 2 commits into from
Jun 1, 2025

Conversation

xiaoq898
Copy link
Contributor

Added get_row_outline_1evel hierarchical display function

PR Details

Added get_row_outline_level hierarchical display function

Description

Added a new get_row_outline_level function that implements reading the hierarchical display levels of worksheet rows.

Related Issue

Motivation and Context

This change addresses the need for programmatic access to row outline levels in worksheets.
Determine which rows are part of grouped/outlined sections
Access the hierarchical level of specific rows
Work with nested row groupings programmatically

How Has This Been Tested

Edge cases: Empty worksheets, single rows, maximum outline levels
Boundary conditions: First/last rows, invalid row indices
Exception handling: Invalid parameters, corrupted outline data

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

xiaoq898 and others added 2 commits May 28, 2025 17:57
Added get_row_outline_1evel hierarchical display function
- Rename set_row_outline to set_row_outline_level
- Update unit tests for get_row_height
Copy link

codecov bot commented May 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b3cba35) to head (79d66da).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #22   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines         2378      2415   +37     
=========================================
+ Hits          2378      2415   +37     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xuri xuri changed the title Added get_row_outline_1evel hierarchical display function Add 2 functions: get_row_outline_level and get_row_height May 31, 2025
Copy link
Owner

@xuri xuri left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution.

@xuri xuri merged commit 397fcbb into xuri:main Jun 1, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants