get.porter.sh/porter@v1.3.0/pkg/cnab/cnab-to-oci/errors_test.go (about)

     1  package cnabtooci
     2  
     3  import (
     4  	"errors"
     5  	"testing"
     6  
     7  	"get.porter.sh/porter/pkg/cnab"
     8  	"github.com/stretchr/testify/assert"
     9  )
    10  
    11  func TestErrNotFound_Is(t *testing.T) {
    12  	err := ErrNotFound{Reference: cnab.MustParseOCIReference("example/bundle:v1.0.0")}
    13  
    14  	assert.True(t, errors.Is(err, ErrNotFound{}))
    15  }