gitlab.com/evatix-go/core@v1.3.55/tests/creationtests/enumimpltests/vars.go (about)

     1  package enumimpltests
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/coretests"
     5  	"gitlab.com/evatix-go/core/errcore"
     6  )
     7  
     8  type EnumImplDynamicMapTestWrapper struct {
     9  	coretests.BaseTestCase
    10  }
    11  
    12  func (it EnumImplDynamicMapTestWrapper) ArrangeAsLeftRightDynamicMap() LeftRightDynamicMap {
    13  	casted, isSuccess := it.ArrangeInput.(LeftRightDynamicMap)
    14  
    15  	if !isSuccess {
    16  		errcore.HandleErrMessage("casting failed to LeftRightDynamicMap")
    17  	}
    18  
    19  	return casted
    20  }