(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestSettingsOverlay_RevertToggle(t *testing.T) { |
| 139 | s := NewSettingsOverlay() |
| 140 | cfg := &config.Config{ |
| 141 | OnComplete: config.OnCompleteConfig{Push: false}, |
| 142 | } |
| 143 | s.LoadFromConfig(cfg) |
| 144 | |
| 145 | s.MoveDown() // Select "Push to remote" |
| 146 | s.ToggleBool() |
| 147 | if !s.items[1].BoolVal { |
| 148 | t.Fatal("expected true after toggle") |
| 149 | } |
| 150 | |
| 151 | s.RevertToggle() |
| 152 | if s.items[1].BoolVal { |
| 153 | t.Error("expected false after revert") |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func TestSettingsOverlay_StringEditing(t *testing.T) { |
| 158 | s := NewSettingsOverlay() |
nothing calls this directly
no test coverage detected