docker: add truncateName boundary test #656

Closed
opened 2026-08-13 15:44:29 +00:00 by the.auditor · 1 comment
Owner

internal/docker/container.go truncateName (enforces the 255-char Docker name limit) has no test coverage — TestContainerName/TestSanitizeName never exercise the truncation path. Add a long-name boundary test (e.g. site+version exceeding 255 chars) verifying the name is cut at the limit.

See PR #655.

`internal/docker/container.go` `truncateName` (enforces the 255-char Docker name limit) has no test coverage — `TestContainerName`/`TestSanitizeName` never exercise the truncation path. Add a long-name boundary test (e.g. site+version exceeding 255 chars) verifying the name is cut at the limit. See PR #655.
Author
Owner

Resolved in PR #655 commit 5c7bb8e: TestTruncateName and TestContainerNameTruncatesLongName added, covering the 255-char truncation path.

Resolved in PR #655 commit 5c7bb8e: `TestTruncateName` and `TestContainerNameTruncatesLongName` added, covering the 255-char truncation path.
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
thwap/thwap-pagesd#656
No description provided.