
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
zuern.dev/is
Professional lightweight testing mini-framework for Go.
This is a fork of https://github.com/matryer/is, which adds support for supplying a message failed tests as an arg or as a comment.
is.Equal
, is.True
, is.NoErr
, and is.Fail
Failures are very easy to read:
The following code shows a range of useful ways you can use the helper methods:
func Test(t *testing.T) {
is := is.New(t)
signedin, err := isSignedIn(ctx)
is.NoErr(err, "isSignedIn error")
is.Equal(signedin, true, "must be signed in")
body := readBody(r)
is.True(strings.Contains(body, "Hi there")) // Should be in body
}
To turn off the colors, run go test
with the -nocolor
flag, or with the env
var NO_COLOR
(with any value).
go test -nocolor
NO_COLOR=1 go test
FAQs
Unknown package
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.