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

l50 / goutils / 5384675116
88%

Build:
DEFAULT BRANCH: main
Ran 27 Jun 2023 01:16AM UTC
Jobs 1
Files 16
Run time 1s
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

27 Jun 2023 01:16AM UTC coverage: 60.21% (+0.05%) from 60.161%
5384675116

push

github

l50
Refactor CreatePackageDocs to accept a template path

The CreatePackageDocs function in docGeneration.go has been refactored to accept a template path as a parameter. This allows for flexibility in choosing the template file for generating the README files. The template path is now passed through the function call chain to generateReadmeForPackage and generateReadmeFromTemplate functions.

Changes made:

- Added templatePath parameter to the CreatePackageDocs function signature.
- Updated the handleDirectory function signature to include the templatePath parameter.
- Modified the processGoFiles function signature to include the templatePath parameter.
- Updated the generateReadmeForPackage function signature to include the templatePath parameter.
- Modified the generateReadmeFromTemplate function signature to include the templatePath parameter.
- Updated function calls in ExampleCreatePackageDocs and TestCreatePackageDocs to pass the templatePath parameter.
- Updated the UpdateDocs function in magefile.go to pass the templatePath parameter when calling CreatePackageDocs.

Note: The specific value for the templatePath parameter should be
provided based on the desired template file location.

973 of 1616 relevant lines covered (60.21%)

4.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5384675116.1 27 Jun 2023 01:16AM UTC 0
60.21
GitHub Action Run
Source Files on build 5384675116
Detailed source file information is not available for this build.
  • Back to Repo
  • 96e25915 on github
  • Prev Build on main (#5373050541)
  • Next Build on main (#5392997451)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc