• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / testutils
71%
main: 81%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.4.3
DEFAULT BRANCH: main
Repo Added 06 Aug 2023 11:36PM UTC
Files 9
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/v0.4.3
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • add-ftp-container
  • add-test-utilities
  • feature/file-operations
  • fix-ssh-container-relative-paths
  • linter-improvements
  • main
  • master
  • refs/tags/v0.1.0
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.4.2
  • refs/tags/v0.4.3

14 Jul 2025 05:52AM UTC coverage: 70.659% (+0.6%) from 70.031%
16259092692

push

github

web-flow
fix(containers): handle relative paths in SSH container SaveFile (#5)

- Fix createDirRecursive to properly handle both absolute and relative paths
- Add security validation to prevent path traversal attacks
- Eliminate race condition in directory creation
- Add comprehensive tests for relative paths and security scenarios
- Update dependencies to latest versions

The SSH container's SaveFile method now correctly creates directories
for relative paths by using the SFTP working directory as the base,
rather than always starting from root.

Fixes issue where SaveFile with paths like 'subdir/file.txt' would
fail with permission denied when trying to create /subdir.

33 of 39 new or added lines in 1 file covered. (84.62%)

1 existing line in 1 file now uncovered.

708 of 1002 relevant lines covered (70.66%)

3.94 hits per line

Relevant lines Covered
Build:
Build:
1002 RELEVANT LINES 708 COVERED LINES
3.94 HITS PER LINE
Source Files on main
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
16259092692 refs/tags/v0.4.3 fix(containers): handle relative paths in SSH container SaveFile (#5) - Fix createDirRecursive to properly handle both absolute and relative paths - Add security validation to prevent path traversal attacks - Eliminate race condition in directory... push 14 Jul 2025 05:57AM UTC web-flow github
70.66
16259083348 master fix(containers): handle relative paths in SSH container SaveFile (#5) - Fix createDirRecursive to properly handle both absolute and relative paths - Add security validation to prevent path traversal attacks - Eliminate race condition in directory... push 14 Jul 2025 05:56AM UTC web-flow github
70.66
16258991296 fix-ssh-container-relative-paths fix(containers): handle relative paths in SSH container SaveFile - Fix createDirRecursive to properly handle both absolute and relative paths - Add security validation to prevent path traversal attacks - Eliminate race condition in directory crea... Pull #5 14 Jul 2025 05:50AM UTC umputun github
70.66
14390293127 refs/tags/v0.4.2 Update dependencies and fix go version in go.mod push 10 Apr 2025 09:10PM UTC umputun github
70.03
14388723411 master Update dependencies and fix go version in go.mod push 10 Apr 2025 07:33PM UTC umputun github
70.03
14371557112 refs/tags/v0.4.0 Add file operations to all container types (#4) * Add DeleteFile methods to containers and standardize file operations - Add DeleteFile method to FTP container - Add file operations (get, save, list, delete) to SSH container - Add file operation... push 10 Apr 2025 03:24AM UTC web-flow github
70.03
14371540395 master Add file operations to all container types (#4) * Add DeleteFile methods to containers and standardize file operations - Add DeleteFile method to FTP container - Add file operations (get, save, list, delete) to SSH container - Add file operation... push 10 Apr 2025 03:23AM UTC web-flow github
70.03
14371468350 feature/file-operations Increase test timeout to 300s for container tests Pull #4 10 Apr 2025 03:16AM UTC umputun github
70.03
14371468765 feature/file-operations Increase test timeout to 300s for container tests Pull #4 10 Apr 2025 03:16AM UTC umputun github
70.03
14371427606 feature/file-operations Add DeleteFile methods to containers and standardize file operations - Add DeleteFile method to FTP container - Add file operations (get, save, list, delete) to SSH container - Add file operations (get, save, list, delete) to Localstack (S3) cont... Pull #4 10 Apr 2025 03:12AM UTC umputun github
70.03
See All Builds (38)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc