Files
Rakshith Ramprakash 814a38867c fix(rust-sdk): satisfy cargo fmt, move agent model tests under cargo test --lib
Two problems with the previous commit, both mine.

`cargo fmt --check` failed on tests/agent_model.rs. I ran cargo build and
cargo test but not the formatter, so I reported that change as verified
when I had only checked part of what CI runs.

Reading the workflow to find that out surfaced the second problem: the
Rust job runs `cargo test --lib`, which does not execute integration
tests under tests/. The regression test I had just added would have been
compiled and clippy-checked but never run — no protection at all. Moved
both cases into the existing `mod tests` in src/types.rs so they
actually execute. tests/audit_metadata.rs has the same gap, left alone
as out of scope here.

Verified against the whole workflow this time: fmt --check, build
--all-targets, clippy -D warnings, test --lib (67 passing), and build
--examples. Confirmed the moved test still fails with the Unknown
variant removed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 02:43:31 +10:00
..