Skip to content
Back to skills

2517 Cov 010 Dcd3d345

ASecurity

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

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
testingbash

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2517-cov-010_dcd3d345 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2517 Cov 010 Dcd3d345?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2517 Cov 010 Dcd3d345
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2517-cov-010-dcd3d345/badge)](https://www.skillsdirectory.com/skills/tools-only-2517-cov-010-dcd3d345)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# 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

```bash
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.