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

Function TestStatus_IsResolved

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

Source from the content-addressed store, hash-verified

233}
234
235func TestStatus_IsResolved(t *testing.T) {
236 tests := []struct {
237 status Status
238 expected bool
239 }{
240 {StatusCompleted, true},
241 {StatusCancelled, true},
242 {StatusPending, false},
243 {StatusInProgress, false},
244 {StatusInReview, false},
245 {StatusBlocked, false},
246 {Status("unknown"), false},
247 }
248
249 for _, tt := range tests {
250 t.Run(string(tt.status), func(t *testing.T) {
251 if got := tt.status.IsResolved(); got != tt.expected {
252 t.Errorf("Status(%q).IsResolved() = %v, want %v", tt.status, got, tt.expected)
253 }
254 })
255 }
256}

Callers

nothing calls this directly

Calls 2

StatusTypeAlias · 0.85
IsResolvedMethod · 0.80

Tested by

no test coverage detected