Skip to content

Add coverage tests for data coercion helpers#1518

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/analyze-test-coverage
Draft

Add coverage tests for data coercion helpers#1518
Copilot wants to merge 1 commit intomainfrom
copilot/analyze-test-coverage

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 7, 2026

What type of change is this?

  • Bug fix in a backwards-compatible manner.
  • New feature in a backwards-compatible manner.
  • Breaking change: bug fix or new feature that involve incompatible API changes.
  • Other (e.g. doc update, configuration, etc)

Adds focused test coverage for compas.data.coercion, one of the uncovered areas from the coverage report. The new tests verify normal tuple/list coercion, confirm the well-known string-as-iterable behavior, cover empty-sequence boundary cases, and assert the expected TypeError for non-iterable top-level inputs.

Checklist

  • I added a line to the CHANGELOG.md file in the Unreleased section under the most fitting heading (e.g. Added, Changed, Removed).
  • I ran all tests on my computer and it's all green (i.e. invoke test).
  • I ran lint on my computer and there are no errors (i.e. invoke lint).
  • I added new functions/classes and made them available on a second-level import, e.g. compas.datastructures.Mesh.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if appropriate)

Agent-Logs-Url: https://github.com/compas-dev/compas/sessions/f010d5d8-9dc7-4ee2-81e9-290bde8b4212

Co-authored-by: tomvanmele <29653489+tomvanmele@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.46%. Comparing base (277cbba) to head (291637b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1518      +/-   ##
==========================================
+ Coverage   62.38%   62.46%   +0.08%     
==========================================
  Files         208      208              
  Lines       22486    22486              
==========================================
+ Hits        14027    14046      +19     
+ Misses       8459     8440      -19     

☔ 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.

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