Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ Before sending a PR, please discuss your change by raising an issue.
## License

BSD-2-Clause

## Running tests

This package predates modules and intentionally has no `go.mod` (zero dependencies).
From a checkout, initialize a temporary module for local testing:

```bash
go mod init github.com/pkg/errors
go test -vet=off ./...
```

`-vet=off` is needed because a few tests intentionally pass non-constant format
strings into `Wrapf` / `WithMessagef`.