Add unit tests for defaultCallback() #14

Closed
opened 2026-02-02 10:01:24 +01:00 by qwc · 0 comments
Owner

Phase 3: Testing — Unit Tests

Core business logic in cmd/backive/main.go is untested.

Tasks

  • Extract defaultCallback to be testable (accept deps as params or use interfaces)
  • Test: device match, no-match, backup found, frequency skip, mount/run/unmount sequence

Files

  • cmd/backive/main.go
  • new cmd/backive/main_test.go
## Phase 3: Testing — Unit Tests Core business logic in `cmd/backive/main.go` is untested. ### Tasks - Extract `defaultCallback` to be testable (accept deps as params or use interfaces) - Test: device match, no-match, backup found, frequency skip, mount/run/unmount sequence ### Files - `cmd/backive/main.go` - new `cmd/backive/main_test.go`
qwc closed this issue 2026-02-02 16:17:42 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwc-open/backive#14
No description provided.