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

go-pkgz / testutils
71%
main: 81%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.5.0
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 fix-ssh-container-relative-paths
branch: fix-ssh-container-relative-paths
CHANGE BRANCH
x
Reset
  • fix-ssh-container-relative-paths
  • add-e-suffix-container-variants
  • add-ftp-container
  • add-test-utilities
  • feature/file-operations
  • fix-ci-caching
  • 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
  • refs/tags/v0.5.0

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

Pull #5

github

umputun
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 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.
Pull Request #5: Fix SSH container SaveFile to handle relative paths correctly

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 fix-ssh-container-relative-paths
  • 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
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
See All Builds (49)
  • 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