COV-010: Test worker state edge cases

Create tests for getworkerstate with invalid IDs, setworkerstate with None in tests/unit/teststateworkers.py.

tools-only Updated 7 repo stars

File contents

COV-010: Test worker state edge cases

Overview

Create tests for get_worker_state with invalid IDs, set_worker_state with None in tests/unit/test_state_workers.py.

Files to Create

  • tests/unit/test_state_workers.py

Files to Modify

None

Files to Read

  • zerg/state.py

Requirements

Implement the task as described. Follow TDD approach:

  1. Write failing tests first
  2. Implement code to make tests pass
  3. Refactor if needed

Verification

pytest tests/unit/test_state_workers.py -v --tb=short

Acceptance Criteria

  • Test get_worker_state with non-existent worker ID
  • Test set_worker_state with None fields
  • Test worker state update preserves existing fields
  • Test get_all_workers returns empty when no workers
  • Test worker state serialization roundtrip

tools-only/X-Skills/tree/main/development/2517-cov-010_dcd3d345 commit c0d2025b90

Frequently asked questions

npx skillmds@latest add tools-only/cov-010-test-worker-state-edge-cases