(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestAlloyModelNestedComposition(t *testing.T) { |
| 58 | t.Parallel() |
| 59 | |
| 60 | cfg, err := Load(t.Context(), NewFileSource("testdata/alloy_model_nested.yaml")) |
| 61 | require.NoError(t, err) |
| 62 | |
| 63 | // The nested alloy should be fully expanded to all constituent models |
| 64 | assert.Equal(t, "opus,gpt,gemini", cfg.Agents.First().Model) |
| 65 | |
| 66 | // All base models should exist |
| 67 | assert.Equal(t, "anthropic", cfg.Models["opus"].Provider) |
| 68 | assert.Equal(t, "openai", cfg.Models["gpt"].Provider) |
| 69 | assert.Equal(t, "google", cfg.Models["gemini"].Provider) |
| 70 | } |
| 71 | |
| 72 | func TestMigrate_v0_v1_provider(t *testing.T) { |
| 73 | t.Parallel() |
nothing calls this directly
no test coverage detected