Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 533 Bytes

Development.md

File metadata and controls

26 lines (18 loc) · 533 Bytes

Development

Testing

For now, test coverage should never fall below 50%

go test ./... -coverprofile="coverage.txt" -covermode=atomic -count=1
go tool cover -html="coverage.txt"

Sanity Tools

Errors

New errors should be custom. Test files can be ignored.

Finds all usages of funcs from the errors package

grep -r --exclude="*_test.go" --exclude="*md" "errors." ./source/hookboy

Finds all usages of error

grep -r --exclude="*_test.go" --exclude="*md" "error" ./source/hookboy