Finding #5: flags after the positional path must still parse.
(t *testing.T)
| 180 | |
| 181 | // Finding #5: flags after the positional path must still parse. |
| 182 | func TestBlastRadiusFlagsAfterPath(t *testing.T) { |
| 183 | requireBlastRadiusTools(t) |
| 184 | root := makeBlastRadiusGitRepo(t) |
| 185 | |
| 186 | out, stderr, err := runCodemapWithInput("", "blast-radius", root, "--json", "--ref", "HEAD") |
| 187 | if err != nil { |
| 188 | t.Fatalf("flags-after-path failed: %v\nstderr=%s", err, stderr) |
| 189 | } |
| 190 | var bundle blastRadiusBundle |
| 191 | if err := json.Unmarshal([]byte(out), &bundle); err != nil { |
| 192 | t.Fatalf("expected JSON when flags follow the path, got: %v\n%s", err, out) |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | // Finding #6: multiple format flags resolve last-wins instead of erroring. |
| 197 | func TestBlastRadiusMultipleFormatFlagsLastWins(t *testing.T) { |
nothing calls this directly
no test coverage detected