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

l50 / goutils / 7270378926
88%

Build:
DEFAULT BRANCH: main
Ran 20 Dec 2023 02:56AM UTC
Jobs 1
Files 23
Run time 2s
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

20 Dec 2023 02:52AM UTC coverage: 67.763% (-0.4%) from 68.199%
7270378926

push

github

web-flow
Enhanced linting utilities with new functionalities and improved logger setup. (#532)

* Implemented RunHookTool function for pre-commit hook execution.

**Added:**

- RunHookTool Function - Added `RunHookTool` in `lintutils.go` to execute
  specific pre-commit hooks on designated files. Supports running on all files
  if none are specified.
- Documentation for RunHookTool - Updated `README.md` in the lint package to
  include documentation and usage information for `RunHookTool`.
- Test Cases for RunHookTool - Included comprehensive tests in `lintutils_test.go`
  to validate various scenarios including single file, multiple files, no files,
  and error conditions.
- Example for RunHookTool - Added an example in `lintutils_examples_test.go` to
  demonstrate the usage of `RunHookTool`.

**Changed:**

- Import Statement in lintutils.go - Included `time` package to support command
  execution with timeout in `RunHookTool`.

**Other Notes:**

- The `RunHookTool` function enhances the automation of running pre-commit
  hooks, improving the consistency and reliability of code linting processes.
- Comprehensive tests and documentation ensure the function's usability and
  ease of integration into existing workflows.

* Enhanced encoderutils tests with Unzip and Zip functionalities.

**Added:**

- Test Suite Refactoring - Refactored `encoderutils_test.go` to use a table-driven
  approach for testing Unzip and Zip functions.
- Unzip Test Function - Added `testUnzip` to validate the functionality of the Unzip
  method, checking for successful file extraction.
- Zip Test Function - Introduced `testZip` to verify the Zip method's ability to
  correctly archive files into a zip format.
- UnzipTraversalAttack Test - Implemented `testUnzipTraversalAttack` to ensure the
  Unzip method correctly handles path traversal attacks, preventing security
  vulnerabilities.

**Changed:**

- Existing Test Modification - Modified the ex... (continued)

21 of 37 new or added lines in 2 files covered. (56.76%)

5 existing lines in 2 files now uncovered.

1484 of 2190 relevant lines covered (67.76%)

12.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7270378926.1 20 Dec 2023 02:56AM UTC 0
67.76
GitHub Action Run
Source Files on build 7270378926
Detailed source file information is not available for this build.
  • Back to Repo
  • 88eaec53 on github
  • Prev Build on main (#7269627629)
  • Next Build on main (#7271510210)
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

© 2026 Coveralls, Inc