View definition

func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool

Defined in github.com/stretchr/testify/assert/assertions.go

Description

Errors

NoError asserts that a function returned no error (i.e. nil).

  actualObj, err := SomeFunction()
  if assert.NoError(t, err) {
	   assert.Equal(t, actualObj, expectedObj)
  }

Returns whether the assertion was successful (true) or not (false).

NoError is referenced in 95 repositories

github.com/diffeo/go-coordinate github.com/caoyin0727/libkv github.com/hsinhoyeh/libkv

...