github.com/NeowayLabs/nash@v0.2.2-0.20200127205349-a227041ffd50/tests/internal/assert/error.go (about)

     1  package assert
     2  
     3  import "testing"
     4  
     5  func NoError(t *testing.T, err error, operation string) {
     6  	if err != nil {
     7  		t.Fatalf("error[%s] %s", err, operation)
     8  	}
     9  }