Socket
Socket
Sign inDemoInstall

github.com/blbgo/testing

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/blbgo/testing


Version published

Readme

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

Last updated on 18 Oct 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc