(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestCreateController_updateConfig(t *testing.T) { |
| 166 | cfg, configPath := setupCreateConfig(t) |
| 167 | |
| 168 | ctrl := NewCreateController(TypeUsers, "testuser", cfg) |
| 169 | ctrl.updateConfig() |
| 170 | |
| 171 | // Config file should be created |
| 172 | assert.FileExists(t, configPath) |
| 173 | |
| 174 | // Verify file is readable |
| 175 | data, err := os.ReadFile(configPath) |
| 176 | assert.NoError(t, err) |
| 177 | assert.NotEmpty(t, data) |
| 178 | } |
| 179 | |
| 180 | func TestCacheContent_JSONParsing(t *testing.T) { |
| 181 | jsonStr := `{"ip":"10.0.0.1","port":"22","user":"root","password":"pass","alias":"test"}` |
nothing calls this directly
no test coverage detected