feat(config): add Neovim and Renode typed inputs
This commit is contained in:
@@ -73,6 +73,31 @@ func TestDefaultsCarryModuleInputs(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultsCarryPlan3bInputs(t *testing.T) {
|
||||
cfg, err := Load("/nonexistent/overlay.yaml")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if cfg.Neovim.NvChadStarterRepo == "" {
|
||||
t.Error("Neovim.NvChadStarterRepo empty")
|
||||
}
|
||||
if cfg.Renode.WokwiVersion == "" {
|
||||
t.Error("Renode.WokwiVersion empty")
|
||||
}
|
||||
if cfg.Renode.WokwiURL == "" {
|
||||
t.Error("Renode.WokwiURL empty")
|
||||
}
|
||||
if len(cfg.Renode.Platforms) == 0 {
|
||||
t.Error("Renode.Platforms empty")
|
||||
}
|
||||
want := map[string]string{"stm32f4": "STM32F4_Discovery", "rp2040": "RP2040", "nrf52840": "nRF52840"}
|
||||
for _, p := range cfg.Renode.Platforms {
|
||||
if want[p.Name] != p.Machine {
|
||||
t.Errorf("platform %q: machine=%q want %q", p.Name, p.Machine, want[p.Name])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadRejectsUnknownVersion(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
path := filepath.Join(dir, "overlay.yaml")
|
||||
|
||||
Reference in New Issue
Block a user