package dsdssandboxes import ( "testing" "gotest.tools/v3/assert" ) func TestToLabelMap(t *testing.T) { expectedLabelMap := map[string]string{ "vmautostartstopweekday": "08-20", "vmautostartstopweekend": "false-18", "vmtz": "utc", } schedule := Schedule{ WeekendStart: nil, WeekendStop: intPointer(18), WeekdayStart: intPointer(8), WeekdayStop: intPointer(20), Timezone: "utc", } assert.DeepEqual( t, expectedLabelMap, schedule.ToLabelMap(), ) }