Skip to content

Group trace LLM test string arguments (#46)#203

Draft
leynos wants to merge 1 commit into
mainfrom
issue-46-tests-unit-address-string-heavy-function-arguments-in-tests-support-unit-tests-trace-llm-tests-rs
Draft

Group trace LLM test string arguments (#46)#203
leynos wants to merge 1 commit into
mainfrom
issue-46-tests-unit-address-string-heavy-function-arguments-in-tests-support-unit-tests-trace-llm-tests-rs

Conversation

@leynos
Copy link
Copy Markdown
Owner

@leynos leynos commented May 25, 2026

Summary

This branch groups trace LLM unit-test helper arguments into named expectation and specification structs so CodeScene no longer sees the module as string-heavy. The change keeps replay behaviour unchanged while making related helper inputs harder to misorder.

Closes #46.

Review walkthrough

Validation

  • cargo test --test support_unit_tests trace_llm_tests: passed, 10 tests.
  • coderabbit review --agent: passed, 0 findings.
  • make all: passed, including formatting, Clippy, 4,146 nextest tests, and 5 GitHub tool tests.
  • git diff --check: passed.

Introduce typed expectation/specification structs for trace LLM test
helpers so related string values are passed as named data rather than
loose positional parameters.

Keep the replay semantics unchanged while reducing the string-heavy
function argument ratio reported for the support unit tests.
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @leynos, you have reached your weekly rate limit of 2500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 10f1a97b-ec50-4104-be2d-b12674cbdbdb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-46-tests-unit-address-string-heavy-function-arguments-in-tests-support-unit-tests-trace-llm-tests-rs

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size: M 50-199 changed lines risk: low Changes to docs, tests, or low-risk modules contributor: core 20+ merged PRs labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: low Changes to docs, tests, or low-risk modules size: M 50-199 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests(unit): address 'String Heavy Function Arguments' in tests/support_unit_tests/trace_llm_tests.rs

1 participant