─── UnrecognizedParams ───────────────────────────────────────────────────────
(t *testing.T)
| 232 | // ─── UnrecognizedParams ─────────────────────────────────────────────────────── |
| 233 | |
| 234 | func TestUnrecognizedParams(t *testing.T) { |
| 235 | t.Run("known params produce no warnings", func(t *testing.T) { |
| 236 | unknown := UnrecognizedParams(map[string]string{"effort": "high", "temperature": "0.5"}) |
| 237 | assert.Empty(t, unknown, "known params should not be reported as unknown") |
| 238 | }) |
| 239 | |
| 240 | t.Run("unknown param is detected", func(t *testing.T) { |
| 241 | unknown := UnrecognizedParams(map[string]string{"foo": "bar"}) |
| 242 | assert.Contains(t, unknown, "foo", "unrecognised param 'foo' should be reported") |
| 243 | }) |
| 244 | |
| 245 | t.Run("mixed known and unknown", func(t *testing.T) { |
| 246 | unknown := UnrecognizedParams(map[string]string{"effort": "medium", "custom": "value"}) |
| 247 | assert.Contains(t, unknown, "custom", "unrecognised 'custom' should be reported") |
| 248 | assert.NotContains(t, unknown, "effort", "'effort' is known and should not appear") |
| 249 | }) |
| 250 | } |
| 251 | |
| 252 | // ─── V-MAF-005: alias key validation ───────────────────────────────────────── |
| 253 |
nothing calls this directly
no test coverage detected