Discover Packages
github.com/frozzare/go-assert
package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Aug 11, 2015
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
README
Documentation
Index
Constants
Variables
Functions
Equal(t, expected, actual)
Fail(t, expected, actual)
False(t, actual)
Nil(t, actual, args)
NotEqual(t, expected, actual)
NotNil(t, actual)
True(t, actual)
Types
Source Files
README
README
¶
go-assert
Asserts to Go testing
View the docs .
Installation
$ go get github.com/frozzare/go-assert
Example
package mypack
import (
"testing"
"github.com/frozzare/go-assert"
)
func TestName(t *testing.T) {
assert.Equal(t, "Foo", "Foo")
}
License
MIT © Fredrik Forsmo
Expand ▾
Collapse ▴
Documentation
¶
func Equal(t *testing.T, expected, actual interface{})
func Fail(t *testing.T, expected, actual interface{})
func False(t *testing.T, actual bool)
func Nil(t *testing.T, actual interface{}, args ...interface{})
func NotEqual(t *testing.T, expected, actual interface{})
func NotNil(t *testing.T, actual interface{})
func True(t *testing.T, actual bool)
func Equal(t *testing .T , expected, actual interface{})
Equal will test if the expected and actual value is the same match.
func Fail(t *testing .T , expected, actual interface{})
Fail will print a failing message to the terminal.
False will test the actual value and see if it's false or not.
func Nil(t *testing .T , actual interface{}, args ...interface{})
Nil will test the actual value and see if it's nil or not.
func NotEqual(t *testing .T , expected, actual interface{})
NotEqual will test if the expected and actual value is not a match.
func NotNil(t *testing .T , actual interface{})
NotNil test check if the actual value is not nil.
True will test the actual value and see if it's true or not.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.