Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

blbergwall/assert

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

assert

Converted to module use "github.com/blbgo/testing/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

About

A testing assert tool for go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.