Skip to content

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

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
unit-tests/phase2-command-proceed-2026-08-31-75bda17ba56c272f
Open

[unit-tests] カバレッジ補強 フェーズ2: Command.process.cs ProceedInput/ProceedCommand テスト追加#1091
github-actions[bot] wants to merge 1 commit into
masterfrom
unit-tests/phase2-command-proceed-2026-08-31-75bda17ba56c272f

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🧪 カバレッジ補強レポート (2026-08-31)

現在のフェーズ / Current Phase

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

追加したテスト / Tests Added

  • CommandProceedTests: 21件追加 (SRCCoreTests/Commands/CommandProceedTests.cs)

テスト内容

ProceedCommand — ViewMode ハンドリング

  • ViewMode=true, by_cancel=false → ViewMode が変化しない
  • ViewMode=true, by_cancel=true → ViewMode = false になる
  • ViewMode=true でも CommandState は変化しない
  • ViewMode=false, unknown CommandState → IsGUILocked が false に復元
  • ViewMode=false, null CommandState → IsScenarioFinished / IsCanceled が false にリセット

ProceedInput — 状態遷移

  • Left click + "マップコマンド" → CommandState = "ユニット選択"
  • Right click + "マップコマンド" → CommandState = "ユニット選択"
  • Left click + "ユニット選択" + unit=null → no-op (ProceedCommand を呼ばない)
  • Left click + "ターゲット選択" + cell=null → no-op
  • Left click + "移動後ターゲット選択" + cell=null → no-op
  • Left click + "コマンド選択" → CancelCommand → "ユニット選択" + SelectedCommand クリア
  • Right click + "ユニット選択" + ViewMode=true → ViewMode=false (ProceedCommand by_cancel=true)
  • Right click + "コマンド選択" → CancelCommand → "ユニット選択"
  • Right click + null CommandState → no-op

合計: 21件追加

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

  • フェーズ1 (CmdDatas/Commands): 完了 (ABGMCmd/AIfCmd/ATalkCmd/FontCmd はサブクラス経由でテスト済み)
  • フェーズ2 (Commands/): CommandProceedTests.cs 追加 — attack.cs/process.cs の残件を部分カバー
  • フェーズ3 (Intermissions/): InStatusCommand/RankUp/Exchange 系はテスト済み

齟齬の報告 / Discrepancies Found

なし / None

テスト結果 / Test Results

Passed: 7510, Skipped: 0, Failed: 1 (既存の Config.LoadTest — 今回の変更と無関係)

次のステップ: Command.attack.cs / Command.process.cs の残メソッドおよび InterMissionCommand のカバー
Next step: Cover remaining methods in Command.attack.cs / process.cs and InterMissionCommand

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 · 533.5 AIC · ⌖ 17.7 AIC · ⊞ 31.9K ·

Command.process.cs の ProceedInput / ProceedCommand メソッドに対して
21件のテストを追加する。

- ProceedCommand ViewMode=true, by_cancel=false → ViewMode 変化なし
- ProceedCommand ViewMode=true, by_cancel=true  → ViewMode=false
- ProceedCommand ViewMode=false, unknown state  → IsGUILocked 復元
- ProceedInput Left+"マップコマンド" → "ユニット選択"
- ProceedInput Right+"マップコマンド" → "ユニット選択"
- ProceedInput Left+"ユニット選択" unit=null → no-op
- ProceedInput Left+"ターゲット選択" cell=null → no-op
- ProceedInput Left+"コマンド選択" → CancelCommand → "ユニット選択"
- ProceedInput Right+"ユニット選択" ViewMode=true → ViewMode=false
- ProceedInput Right+"コマンド選択" → CancelCommand → "ユニット選択"

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