File: errors_test.go

package info (click to toggle)
golang-github-gorgonia-tensor 0.9.24-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,696 kB
  • sloc: sh: 18; asm: 18; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package tensor

import (
	"github.com/pkg/errors"
	"github.com/stretchr/testify/assert"
	"testing"
)

func TestHandleNoOp(t *testing.T) {
	otherErr := errors.New("other error")

	assert.Equal(t, nil, handleNoOp(noopError{}))
	assert.Equal(t, nil, handleNoOp(nil))
	assert.Equal(t, otherErr, handleNoOp(otherErr))
}