Skip to content

[unit-tests] カバレッジ補強 フェーズ2: Command.process.cs テスト追加 - #1072

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
coverage/phase2-command-process-tests-16dfd694b9a799bc
Open

[unit-tests] カバレッジ補強 フェーズ2: Command.process.cs テスト追加#1072
github-actions[bot] wants to merge 1 commit into
masterfrom
coverage/phase2-command-process-tests-16dfd694b9a799bc

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🧪 カバレッジ補強レポート (2026-07-12)

現在のフェーズ / Current Phase

  • フェーズ2: Commands/ 拡充 — Command.process.csProceedInput / ProceedCommand テスト追加

追加したテスト / Tests Added

  • CommandProcessTests.cs: 13件追加

テスト内容

ProceedCommand — ViewMode:

  • ViewMode=true, by_cancel=trueViewModefalse になる
  • ViewMode=true, by_cancel=falseViewMode は変わらない(アーリーリターン)
  • ViewMode=true, by_cancel=trueCommandState は変化しない
  • ViewMode=false, by_cancel=trueViewModefalse のまま

ProceedInput — "マップコマンド" 状態:

  • 左クリック → CommandState"ユニット選択" に変化
  • 右クリック → CommandState"ユニット選択" に変化

ProceedInput — "コマンド選択" 状態:

  • 左クリック (unit=null) → CancelCommand() 呼び出し → "ユニット選択" へ / SelectedCommand クリア
  • 右クリック → CancelCommand() 呼び出し → "ユニット選択"

ProceedInput — ターゲット選択・その他:

  • "ターゲット選択" + cell=null → 処理スキップ(CommandState 変化なし)
  • "移動後ターゲット選択" + cell=null → 処理スキップ
  • "ユニット選択" + 左クリック + unit=null → ProceedCommand は呼ばれない
  • GuiButton.None → 何もしない

合計: 13件追加

カバレッジサマリー / Coverage Summary

  • フェーズ1 (CmdDatas/Commands): 完了(AIfCmd・ATalkCmd・ABGMCmdは抽象基底、FontCmdはLinux除外として記録済み)
  • フェーズ2 (Commands/): テストファイル17件 / ソースファイル15件(Command.attack.cs は private のみのため別途検討)
  • フェーズ3 (Intermissions/): テスト有 (RankUp / Exchange / InStatus)

齟齬の報告 / Discrepancies Found

なし / None

テスト結果 / Test Results

Passed: 7502, Skipped: 0, Failed: 1 (LoadTest — 既存の pre-existing failure)
新規追加 13件: 全パス ✅

次のステップ: Command.attack.cs の private メソッドへのアクセス手法を検討、または他の未カバー領域の調査

Warning

Firewall blocked 9 domains

The following domains were blocked by the firewall during workflow execution:

  • crl3.digicert.com
  • crl4.digicert.com
  • dc.services.visualstudio.com
  • ocsp.digicert.com
  • s.symcb.com
  • s.symcd.com
  • tscrl.ws.symantec.com
  • tsocsp.ws.symantec.com
  • www.microsoft.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "crl3.digicert.com"
    - "crl4.digicert.com"
    - "dc.services.visualstudio.com"
    - "ocsp.digicert.com"
    - "s.symcb.com"
    - "s.symcd.com"
    - "tscrl.ws.symantec.com"
    - "tsocsp.ws.symantec.com"
    - "www.microsoft.com"

See Network Configuration for more information.

Generated by カバレッジ補強エージェント / Coverage Reinforcement Agent · 741.3 AIC · ⌖ 12.4 AIC · ⊞ 31.9K ·

- ViewMode=true 時の ProceedCommand の動作 (by_cancel=true/false)
- ProceedInput: "マップコマンド" 状態での左/右クリック → "ユニット選択" への遷移
- ProceedInput: "コマンド選択" 状態での左/右クリック → CancelCommand 呼び出し
- ProceedInput: ターゲット選択状態で cell=null の場合は処理スキップ
- ProceedInput: GuiButton.None は何もしない

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

0 participants