(t *testing.T)
| 205 | } |
| 206 | |
| 207 | func TestSet_Effort(t *testing.T) { |
| 208 | tmpDir := createSetTestFiles(t) |
| 209 | resetSetFlags() |
| 210 | taskDir = tmpDir |
| 211 | setTaskID = "002" |
| 212 | setEffort = "small" |
| 213 | |
| 214 | output, err := captureSetOutput(t) |
| 215 | if err != nil { |
| 216 | t.Fatalf("unexpected error: %v", err) |
| 217 | } |
| 218 | |
| 219 | if !strings.Contains(output, "effort: large -> small") { |
| 220 | t.Errorf("Expected effort change in output, got: %s", output) |
| 221 | } |
| 222 | |
| 223 | content, _ := os.ReadFile(filepath.Join(tmpDir, "002-auth.md")) |
| 224 | if !strings.Contains(string(content), "effort: small") { |
| 225 | t.Error("Expected file to contain updated effort") |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | func TestSet_Owner(t *testing.T) { |
| 230 | tmpDir := createSetTestFiles(t) |
nothing calls this directly
no test coverage detected