Skip to content

Conversation

@abtreece
Copy link
Owner

@abtreece abtreece commented Jan 6, 2026

Summary

Zookeeper

  • Added zkConn interface for mocking Zookeeper connections
  • Added comprehensive GetValues tests (leaf nodes, children, nested structures)
  • Added watch tests (data changed, children changed, errors, cancellation)
  • Coverage improved from 2.5% to 79.7%

Vault

  • Added more edge cases for flatten, getConfig, getMount, uniqMounts
  • Added tests for unsupported types in flatten
  • Added tests for getConfig with CA certs and invalid certs
  • Added tests for New() and ListSecret error cases
  • Coverage improved from 16.7% to 32.1%

Overall project coverage improved from 44.9% to 51.0%

Test plan

  • All existing tests pass
  • New Zookeeper tests pass
  • New Vault tests pass
  • Coverage verified with go test -coverprofile

🤖 Generated with Claude Code

Zookeeper:
- Add zkConn interface for mocking Zookeeper connections
- Add comprehensive GetValues tests (leaf nodes, children, nested)
- Add watch tests (data changed, children changed, errors)
- Coverage improved from 2.5% to 79.7%

Vault:
- Add more edge cases for flatten, getConfig, getMount, uniqMounts
- Add tests for unsupported types in flatten
- Add tests for getConfig with CA certs
- Add tests for New() and ListSecret error cases
- Coverage improved from 16.7% to 32.1%

Overall coverage improved from 44.9% to 51.0%

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@abtreece abtreece merged commit 525e09e into main Jan 6, 2026
6 checks passed
@abtreece abtreece deleted the feat/improve-vault-zookeeper-coverage branch January 6, 2026 23:03
@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.60%. Comparing base (f7cc958) to head (ed9b2df).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #321      +/-   ##
==========================================
+ Coverage   39.85%   45.60%   +5.74%     
==========================================
  Files          19       19              
  Lines        1706     1706              
==========================================
+ Hits          680      778      +98     
+ Misses        955      853     -102     
- Partials       71       75       +4     

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

1 participant