MCPcopy Create free account
hub / github.com/driangle/taskmd / TestTask_GetGroup

Function TestTask_GetGroup

sdk/go/model/task_test.go:123–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func 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
139func TestFlexibleTime_UnmarshalYAML(t *testing.T) {
140 type doc struct {

Callers

nothing calls this directly

Calls 1

GetGroupMethod · 0.95

Tested by

no test coverage detected