Skip to content

refactor(test): consolidate split test methods#226

Merged
retr0h merged 1 commit intomainfrom
refactor/consolidate-test-methods
Mar 6, 2026
Merged

refactor(test): consolidate split test methods#226
retr0h merged 1 commit intomainfrom
refactor/consolidate-test-methods

Conversation

@retr0h
Copy link
Collaborator

@retr0h retr0h commented Mar 6, 2026

Summary

  • Merge split test methods into single table-driven methods following the one-suite-method-per-function convention across 4 files
  • Remove two obsolete backlog tasks superseded by osapi-orchestrator

Test plan

  • just go::unit — all tests pass
  • just go::vet — 0 lint issues
  • Verified consolidated tests cover all original scenarios

🤖 Generated with Claude Code

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thank you for contributing to this project! 😊🕹️

Merge split test methods into single table-driven methods
following the one-suite-method-per-function convention:

- metrics_test: 3 InitMeter methods → TestInitMeter
- telemetry_test: 3 InitTracer methods → TestInitTracer
- slog_public_test: merge PreservesTraceID into TestNewTraceHandler
- target_public_test: merge CacheHit into TestValidTarget

Also remove two obsolete backlog tasks superseded by the
osapi-orchestrator (sdk-response-types, declarative-playbook).

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

Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h retr0h force-pushed the refactor/consolidate-test-methods branch from 87bc806 to 379252f Compare March 6, 2026 01:01
@retr0h retr0h merged commit 728d568 into main Mar 6, 2026
7 checks passed
@retr0h retr0h deleted the refactor/consolidate-test-methods branch March 6, 2026 01:06
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #226   +/-   ##
=======================================
  Coverage   98.94%   98.94%           
=======================================
  Files         161      161           
  Lines        5611     5611           
=======================================
  Hits         5552     5552           
  Misses         50       50           
  Partials        9        9           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a76f54e...379252f. Read the comment docs.

🚀 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant