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

Teamwork / utils
77%

Build:
DEFAULT BRANCH: master
Repo Added 26 Apr 2023 10:15AM UTC
Token 02wW7KhwMeA1UwF1mRkaUogUEa88dn7hy regen
Build 114 Last
Files 27
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
Sync Branches
  • master
  • compatibitity
  • dep
  • enhancement/default
  • enhancement/generic-slice-extend
  • enhancement/sliceutil-toany
  • enhancement/syncutil-stuff
  • feat-ceil-plus
  • fix-generics
  • fix/goutil-windows-paths
  • fix/predeclared-types
  • generic-map-and-reduce
  • goutil-generics
  • httpx-exp-backoff
  • httpx-exponential-backoff
  • join-with
  • maputil-getvalue
  • refs/tags/v2.0.0
  • refs/tags/v2.0.1
  • refs/tags/v2.0.2
  • refs/tags/v2.1.0
  • refs/tags/v2.2.0
  • refs/tags/v2.2.1
  • refs/tags/v2.2.2
  • refs/tags/v2.2.3
  • refs/tags/v2.2.4
  • refs/tags/v2.2.5
  • refs/tags/v2.2.6
  • refs/tags/v2.3.0
  • refs/tags/v2.3.1
  • refs/tags/v2.3.2
  • valuesfunc

04 Sep 2026 04:04PM UTC coverage: 76.868% (+0.2%) from 76.703%
33893116752

push

github

web-flow
goutil: handle Windows paths in ResolvePackage and ResolveImport (#91)

* goutil: handle Windows paths in ResolvePackage and ResolveImport

Two path helpers assumed Unix conventions, so both misbehave on a Windows
checkout.

ResolvePackage switched on path[0] and only treated a leading '/' as a
directory. A Windows absolute path starts with a drive letter, so it fell
through to build.Import and was resolved as though it were an import path,
which always fails.

ResolveImport's same-package fallback derived the current package name with
path.Base(path.Dir(file)). The path package is slash-only, so for
C:\src\pkg\file.go it evaluates to "." and the fallback never fires,
leaving same-package type references unresolvable.

Both are fixed with helpers that accept either convention, so they are
unit-testable on any host rather than only on Windows. No behaviour change
for Unix paths.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* httputilx: serve TestFetch's fixtures locally instead of httpbin.org

TestFetch drove its status-code cases off httpbin.org, which returns 503
often enough to fail unrelated builds — it failed on this branch while
passing on a re-run of the same commit.

An httptest server now serves the 400/500/418 responses, and the
connection-failure case dials a closed local port rather than relying on a
domain never resolving, which a wildcard DNS resolver can defeat.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

14 of 16 new or added lines in 1 file covered. (87.5%)

1296 of 1686 relevant lines covered (76.87%)

35.2 hits per line

Relevant lines Covered
Build:
Build:
1686 RELEVANT LINES 1296 COVERED LINES
35.2 HITS PER LINE
Source Files on master
  • Tree
  • List 27
  • 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
33893116752 master goutil: handle Windows paths in ResolvePackage and ResolveImport (#91) * goutil: handle Windows paths in ResolvePackage and ResolveImport Two path helpers assumed Unix conventions, so both misbehave on a Windows checkout. ResolvePackage switche... push 04 Sep 2026 04:05PM UTC web-flow github
76.87
20778593065 master Merge pull request #89 from Teamwork/httpx-exp-backoff Fix request body handling in DoExponentialBackoff push 07 Jan 2026 10:36AM UTC web-flow github
76.7
20759133771 master Merge pull request #88 from Teamwork/httpx-exponential-backoff Fix: HTTP - Exponential Backoff - Expose error after reaching all attempts push 06 Jan 2026 07:10PM UTC web-flow github
76.88
19932087602 master Merge pull request #87 from Teamwork/httpx-exp-backoff Feature: HTTP exponential backoff push 04 Dec 2025 02:18PM UTC web-flow github
76.88
19365224855 master Generic map and reduce (#86) * Generic Map/Reduce functions * fix httputilx test push 14 Nov 2025 12:56PM UTC web-flow github
77.38
13520050409 master Merge pull request #85 from Teamwork/goutil-generics Enhancement: Add support for generics in goutil.TagName push 25 Feb 2025 11:23AM UTC web-flow github
77.31
12322038639 master Fix deprecation comments (#84) push 13 Dec 2024 07:46PM UTC web-flow github
77.61
11389206348 master Merge pull request #83 from Teamwork/enhancement/sliceutil-toany Enhancement: sliceutil - New function to convert a slice to any push 17 Oct 2024 04:35PM UTC web-flow github
77.61
10521599062 master Merge pull request #81 from Teamwork/feat-ceil-plus Feat: expand mathutil to add CeilPlus push 23 Aug 2024 07:17AM UTC web-flow github
78.23
10512587193 master Add v0 compatibility functions (#82) * Add v0 compatibility functions bunch of dependants still use a version before generics this will help migration to be done progressively * lovely lint push 22 Aug 2024 05:13PM UTC web-flow github
78.17
See All Builds (95)

Badge your Repo: utils

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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