| 121 | } |
| 122 | |
| 123 | func TestTask_GetGroup(t *testing.T) { |
| 124 | t.Run("with group set", func(t *testing.T) { |
| 125 | task := Task{Group: "backend"} |
| 126 | if got := task.GetGroup(); got != "backend" { |
| 127 | t.Errorf("GetGroup() = %q, want %q", got, "backend") |
| 128 | } |
| 129 | }) |
| 130 | |
| 131 | t.Run("with empty group", func(t *testing.T) { |
| 132 | task := Task{} |
| 133 | if got := task.GetGroup(); got != "" { |
| 134 | t.Errorf("GetGroup() = %q, want empty string", got) |
| 135 | } |
| 136 | }) |
| 137 | } |
| 138 | |
| 139 | func TestFlexibleTime_UnmarshalYAML(t *testing.T) { |
| 140 | type doc struct { |