Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
github.com/tj/assert
Package assert implements the same assertions as the `assert` package but stops test execution when a test fails. The following is a complete example using require in a standard test function: The `require` package have same global functions as in the `assert` package, but instead of returning a boolean result they call `t.FailNow()`. Every assertion function also takes an optional string message as the final argument, allowing custom error messages to be appended to the message the assertion method outputs.
Readme
Assertion pkg for Go, copied from github.com/stretchr/testify's require package.
I find early errors more useful than the t.Errorf()
calls, which often fall through to nil pointers causing panics etc.
FAQs
Package assert implements the same assertions as the `assert` package but stops test execution when a test fails. The following is a complete example using require in a standard test function: The `require` package have same global functions as in the `assert` package, but instead of returning a boolean result they call `t.FailNow()`. Every assertion function also takes an optional string message as the final argument, allowing custom error messages to be appended to the message the assertion method outputs.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.