TestLoadStore_GarbageFileErrors — a malformed credentials.json is reported as an error, not silently treated as empty. We don't want `pad auth login` writing to a file we can't safely interpret — that'd lose user data.
(t *testing.T)
| 392 | // `pad auth login` writing to a file we can't safely interpret — |
| 393 | // that'd lose user data. |
| 394 | func TestLoadStore_GarbageFileErrors(t *testing.T) { |
| 395 | home := withTempHome(t) |
| 396 | writeCredsFile(t, home, "not json at all {[}") |
| 397 | |
| 398 | if _, err := LoadStore(); err == nil { |
| 399 | t.Error("LoadStore on garbage file: expected error, got nil") |
| 400 | } |
| 401 | } |
nothing calls this directly
no test coverage detected