🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/blbgo/testing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/blbgo/testing

v0.1.0
Source
Go
Version published
Created
Source

assert

A testing assert tool for go.

GoDoc Go Report Card License

Install

go get github.com/blbergwall/assert

Overview

Provide a collection of assert and testing helper methods

When an assert fails t.Fatal is called ending the current test with failure

Usage

func TestATest(t *testing.T) {
	a := assert.New(t)

	result, err := methodUnderTest()
	a.NoError(err)
	a.Equal(5, result)
}

Why?

Mainly because this package is used by another package I plan to provide.

I am aware of stretchr/testify and maybe I should switch to using that.

Also I am fairly new to go and publishing open source code and want to learn more about both.

License

MIT

FAQs

Package last updated on 18 Oct 2020

Did you know?

Socket

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.

Install

Related posts