19 lines
687 B
Markdown
19 lines
687 B
Markdown
# @go/task Test Report
|
|
|
|
## 🧪 Unit Tests
|
|
|
|
| Test Case | Description | Result |
|
|
| --- | --- | --- |
|
|
| `TestTaskBasic` | Verify basic registration and execution | PASS |
|
|
| `TestTaskPolicySkip` | Verify `PolicySkip` behavior | PASS |
|
|
| `TestTaskTimeout` | Verify timeout management | PASS |
|
|
| `TestTaskWithError` | Verify error handling in job functions | PASS |
|
|
|
|
## 📊 Performance
|
|
|
|
`@go/task` uses `robfig/cron` which is highly efficient. The overhead of the wrapper is minimal (few mutex locks and context switches).
|
|
|
|
## 🛡️ Stability
|
|
|
|
Verified with long-running tasks and overlapping execution scenarios. Context-based timeout ensures resources are released even if a job hangs.
|