This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make SignalCancelError wrap context.Canceled
- Loading branch information
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.vscode | ||
|
||
*.out | ||
|
||
coverage | ||
playground | ||
|
||
*.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3" | ||
|
||
tasks: | ||
coverage: | ||
cmds: | ||
- rm -rf ./coverage && mkdir ./coverage | ||
- go test -v -p 1 -count 1 -race -test.gocoverdir=./coverage -cover ./... | ||
- go tool covdata percent -i=./coverage | ||
- go tool covdata textfmt -i ./coverage -o ./coverage/results.out | ||
- '{{if eq .CLI_ARGS "html"}} go tool cover -html ./coverage/results.out{{end}}' | ||
|
||
lint: | ||
cmds: | ||
- golangci-lint run ./... | ||
|
||
|
||
# Ironically the task runner is itself a dev dependency of the project. | ||
# To install it run the following command: | ||
# | ||
# go install github.com/go-task/task/v3/cmd/task@latest | ||
install-dev-deps: | ||
cmds: | ||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters