airvzxf / airvzxf/ftp-deployment-action

test(unit): bats coverage gaps for compute_backoff_seconds and validate_path edge cases

Đang mở
#230 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
audit pending-human pending-validation priority:low test
Ngôn ngữ chính
Shell
Star
37
Fork
9
Merge trung bình
44 phút
Pull request đã merge (30 ngày)
47

Mô tả

gh issue create --title "test(unit): bats coverage gaps for compute_backoff_seconds and validate_path edge cases" --label "test,audit,priority:low" --body "## Finding

tests/unit/lib.bats (or similar) does not cover:
- compute_backoff_seconds with _cb_delay=0
- compute_backoff_seconds with negative input
- validate_path with non-ASCII characters (the validator's regex may behave unexpectedly with multi-byte input)
- validate_path with newline (\\n) in input
- extract_netrc_host with empty string

## Affected code

- tests/unit/lib.bats

## Reproduction

N/A — coverage gap.

## Suggested fix

Add the missing bats test cases.

## Source

F2 audit 2026-09-03 (tests audit). Reporter: subagent-pekodbj7.

## Related

- Part of EPIC #[epic-number]
- Closes: #NONE (no existing issue)
- Related: lib.sh LOW-2 (extract_netrc_host coverage)"

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.