Skip to content

test(kafka): cover custom serializer output variants - #8499

Merged
leandrodamascena merged 2 commits into
developfrom
test/kafka-custom-serializer-coverage
Sep 29, 2026
Merged

leandrodamascena merged 2 commits into
developfrom
test/kafka-custom-serializer-coverage

Conversation

@leandrodamascena

Copy link
Copy Markdown
Contributor

Issue number: follow-up to #8498

Summary

Changes

Adds Kafka consumer tests for custom output functions, classes, and callable objects using JSON data. Also checks that serialization without an output transform returns the original dictionary.

These cases cover both branches of CustomDictOutputSerializer.serialize, which were flagged by Codecov after the typing fix.

User experience

No runtime behavior changes.

Validation

  • Kafka and Feature Flags tests: 239 passed.
  • custom_dict.py: 100% line and branch coverage.
  • Ruff lint and formatting passed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@leandrodamascena
leandrodamascena requested a review from a team as a code owner September 29, 2026 00:02
@boring-cyborg boring-cyborg Bot added the tests label Sep 29, 2026
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 29, 2026
@powertools-for-aws-oss-automation

Copy link
Copy Markdown

Referenced issues are closed or don't exist. Please ensure there is an open issue related to this change to avoid significant delays or closure.

@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.81%. Comparing base (ea11be2) to head (7a10bf0).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8499      +/-   ##
===========================================
+ Coverage    96.80%   96.81%   +0.01%     
===========================================
  Files          310      310              
  Lines        15594    15594              
  Branches      1361     1361              
===========================================
+ Hits         15096    15098       +2     
+ Misses         362      361       -1     
+ Partials       136      135       -1     

☔ View full report in Codecov by Harness.
📢 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.

@mergify

mergify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@sonarqubecloud

Copy link
Copy Markdown

@leandrodamascena
leandrodamascena merged commit 7a805fb into develop Sep 29, 2026
14 of 15 checks passed
@leandrodamascena
leandrodamascena deleted the test/kafka-custom-serializer-coverage branch September 29, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants