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

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