-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
default: | ||
deps: [test] | ||
version: '2' | ||
|
||
update-deps: | ||
desc: Updates dependencies | ||
cmds: | ||
- dep ensure | ||
- dep ensure -update | ||
env: | ||
GOFLAGS: -mod=vendor | ||
|
||
lint: | ||
desc: Checks code style | ||
cmds: | ||
- gofmt -d -s *.go | ||
- go vet . | ||
silent: true | ||
tasks: | ||
default: | ||
deps: [test] | ||
|
||
lint-fix: | ||
desc: Fixes code style | ||
cmds: | ||
- gofmt -w -s *.go | ||
lint: | ||
desc: Checks code style | ||
cmds: | ||
- gofmt -d -s *.go | ||
- go vet ./... | ||
silent: true | ||
|
||
test: | ||
desc: Runs go tests | ||
cmds: | ||
- go test -race . | ||
lint-fix: | ||
desc: Fixes code style | ||
cmds: | ||
- gofmt -w -s *.go | ||
|
||
test-coverage: | ||
desc: Runs go tests and calucates test coverage | ||
cmds: | ||
- go test -coverprofile=c.out . | ||
test: | ||
desc: Runs go tests | ||
cmds: | ||
- go test -race ./... | ||
|
||
test-coverage: | ||
desc: Runs go tests and calucates test coverage | ||
cmds: | ||
- go test -race -coverprofile=c.out ./... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module github.com/stretchr/objx | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/stretchr/testify v1.3.0 | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= | ||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# github.com/davecgh/go-spew v1.1.1 | ||
github.com/davecgh/go-spew/spew | ||
# github.com/pmezard/go-difflib v1.0.0 | ||
github.com/pmezard/go-difflib/difflib | ||
# github.com/stretchr/testify v1.3.0 | ||
github.com/stretchr/testify/assert | ||
github.com/stretchr/testify/require |