• 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 master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-ftp-container
  • add-test-utilities
  • feature/file-operations
  • fix-ssh-container-relative-paths
  • linter-improvements
  • main
  • 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%
16259083348

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 master
  • 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
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
14388723411 master Update dependencies and fix go version in go.mod push 10 Apr 2025 07:33PM UTC umputun 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
14370251236 master Update GitHub Actions checkout action to v4 push 10 Apr 2025 01:29AM UTC umputun github
72.21
14369854679 master Clean up Masterminds/vcs dependencies Simplify the dependency tree by removing duplicate entries for the vcs package. The package is now properly tracked as an indirect dependency, which should resolve the security vulnerability reporting. push 10 Apr 2025 01:01AM UTC umputun github
72.21
14369825406 master Update github.com/masterminds/vcs to v1.13.2 Fix security vulnerability related to command injection in Mercurial (hg) APIs. This update prevents specially crafted URLs and local file paths from executing arbitrary commands when passed to the Mer... push 10 Apr 2025 12:52AM UTC umputun github
72.21
14369791461 master Increase CI test timeout to 180s for container tests Container tests like MongoDB need more time than the default 60s timeout. This increases the timeout to 180s for the entire test suite to ensure container tests have enough time to complete. push 10 Apr 2025 12:50AM UTC umputun github
72.21
14369605481 master Improve test coverage to exceed 90% - Add tests for error handling in FTP container - Add more comprehensive tests for file operations - Enhance testing for stdout/stderr capture - Add tests for large outputs and binary content - Add tests for di... push 10 Apr 2025 12:31AM UTC umputun github
86.52
14369330074 master Add Go Reference badge to README push 10 Apr 2025 12:09AM UTC umputun github
86.52
14369235252 master Migrate to golangci-lint v2 and fix linting issues (#3) * Add FTP container implementation for testing FTP operations - Add FTPTestContainer for testing FTP file transfers - Implement methods for uploading, downloading, and listing files - Add c... push 10 Apr 2025 12:02AM UTC web-flow github
86.52
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