(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestUpdateConfigAtPath_InvalidPath(t *testing.T) { |
| 195 | // Use a path in a non-existent directory that cannot be created |
| 196 | // (e.g., under /proc on Linux or /dev on macOS if restricted) |
| 197 | conf := &MainConfig{} |
| 198 | conf.Main.Ports = []string{"22"} |
| 199 | |
| 200 | err := UpdateConfigAtPath("/nonexistent_root_dir/subdir/tryssh.db", conf) |
| 201 | assert.Error(t, err) |
| 202 | } |
| 203 | |
| 204 | func TestGenerateConfig(t *testing.T) { |
| 205 | dir := testutil.TempDir(t) |
nothing calls this directly
no test coverage detected