-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test for goutil package #41
Conversation
Codecov Report
@@ Coverage Diff @@
## main #41 +/- ##
==========================================
+ Coverage 84.40% 87.81% +3.40%
==========================================
Files 10 11 +1
Lines 295 435 +140
==========================================
+ Hits 249 382 +133
- Misses 33 39 +6
- Partials 13 14 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@KEINOS
You don't have to force yourself to aim for 100% coverage. |
078131d
to
c4a15a7
Compare
b482506
to
d383f07
Compare
I think it's ready! 👍 Please review it when you got time 🤞 |
@KEINOS Currently, the test passes on Linux, Mac, and Windows. |
d383f07
to
797b4bd
Compare
Windows... |
1 similar comment
Windows... |
It seems the errors are from Is it OK to touch them? Though, I don't know why it fails on Windows. It seems ok at the first glance. |
Sorry, I was wrong about the above comment. It IS my bad. https://github.com/nao1215/gup/actions/runs/3079250233/jobs/4975350665#step:4:253 |
@KEINOS |
Linux「Windows...」 |
3468014
to
ea5ec9e
Compare
[MEMO]: Differences of module paths between platforms macOS$ go version -m "$(which gup)"
/Users/admin/go/bin/gup: go1.19.1
path github.com/nao1215/gup
mod github.com/nao1215/gup v0.10.5 h1:kQKlfrQyNIBq4DlOKB26oLOFHStszgxSnTKyOtdMJbM=
dep github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
dep github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1 h1:Xh9mvwEmhbdXlRSsgn+N0zj/NqnKvpeqL08oKDHln2s=
dep github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
dep github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
dep github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
dep github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
dep golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=
build -compiler=gc
build CGO_ENABLED=1
build CGO_CFLAGS=
build CGO_CPPFLAGS=
build CGO_CXXFLAGS=
build CGO_LDFLAGS=
build GOARCH=amd64
build GOOS=darwin
build GOAMD64=v1 Linux (Debian, Docker+
|
- Avoid to check OS dependent error message (wrap them with custom message). - Avoid use of OS dependent directory separator.
ea5ec9e
to
8476fb6
Compare
@KEINOS |
This PR will cover the
gup/internal/goutil
.goutil
package to cover the basicsgouil
up to 100%