(t *testing.T)
| 233 | } |
| 234 | |
| 235 | func 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 | } |
nothing calls this directly
no test coverage detected