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

     1  package enumimpltests
     2  
     3  import (
     4  	"reflect"
     5  
     6  	"gitlab.com/evatix-go/core/coreimpl/enumimpl"
     7  	"gitlab.com/evatix-go/core/coretests"
     8  )
     9  
    10  var dynamicMapDiffTestCases = []EnumImplDynamicMapTestWrapper{
    11  	{
    12  		BaseTestCase: coretests.BaseTestCase{
    13  			Title: "dynamic map must yield diff properly.",
    14  			ArrangeInput: LeftRightDynamicMap{
    15  				Left: map[string]interface{}{
    16  					"exist":                        1,
    17  					"not-exist-in-right":           3,
    18  					"exist-in-left-right-diff-val": 5,
    19  				},
    20  				Right: map[string]interface{}{
    21  					"exist":                        1,
    22  					"not-exist-in-left":            2,
    23  					"exist-in-left-right-diff-val": 6,
    24  				},
    25  			},
    26  			ActualInput: nil,
    27  			ExpectedInput: enumimpl.DynamicMap{
    28  				"exist-in-left-right-diff-val": 5,
    29  				"not-exist-in-left":            2,
    30  				"not-exist-in-right":           3,
    31  			},
    32  			ArrangeExpectedType:    reflect.TypeOf(LeftRightDynamicMap{}),
    33  			ActualExpectedType:     reflect.TypeOf(enumimpl.DynamicMap{}),
    34  			ExpectedTypeOfExpected: reflect.TypeOf(enumimpl.DynamicMap{}),
    35  			HasError:               false,
    36  			IsValidateError:        true,
    37  		},
    38  	},
    39  }