github.com/s7techlab/cckit@v0.10.5/testing/gomega/matchers.go (about)

     1  package gomega
     2  
     3  import (
     4  	"github.com/onsi/gomega/types"
     5  	"github.com/s7techlab/cckit/testing/gomega/matchers"
     6  )
     7  
     8  func StringerEqual(expected interface{}) types.GomegaMatcher {
     9  	return &matchers.StringerEqualMatcher{
    10  		Expected: expected,
    11  	}
    12  }
    13  
    14  func ErrorIs(expected interface{}) types.GomegaMatcher {
    15  	return &matchers.ErrorIslMatcher{
    16  		Expected: expected,
    17  	}
    18  }