From d136c328766d3718933f1326ed34215251e2b111 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:55:47 +0000 Subject: [PATCH] test: remove 2 redundant generate_stage_prefix tests in compile/job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_generate_stage_prefix_single_word and test_generate_stage_prefix_underscores are strict subsets of test_generate_stage_prefix_hyphens: - single_word ("review" → "Review"): the per-word capitalisation path is already exercised by hyphens, which processes "my" → "My" and "agent" → "Agent". A single-element split is indistinguishable from a multi-element split at the map/collect level. - underscores ("code_review_agent" → "CodeReviewAgent"): the separator identical code path. hyphens is the stronger test — it also covers a numeric segment ("123" → "123"). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/compile/job.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/compile/job.rs b/src/compile/job.rs index d776ad2e..d36ab875 100644 --- a/src/compile/job.rs +++ b/src/compile/job.rs @@ -151,19 +151,6 @@ mod tests { assert_eq!(generate_stage_prefix("123start"), "_123start"); } - #[test] - fn test_generate_stage_prefix_single_word() { - assert_eq!(generate_stage_prefix("review"), "Review"); - } - - #[test] - fn test_generate_stage_prefix_underscores() { - assert_eq!( - generate_stage_prefix("code_review_agent"), - "CodeReviewAgent" - ); - } - #[test] fn test_generate_stage_prefix_unicode_stripped() { // ADO identifiers require [A-Za-z0-9_]; non-ASCII chars are split points