Commit Graph
31 Commits
Author SHA1 Message Date
objz 37cccc352b fix(content): correct discovery loading status 2026-08-04 20:06:41 +02:00
objz 52f074ce46 feat(content): configure discovery provider scope 2026-08-04 19:45:53 +02:00
objz 1742f62cd0 feat(discovery): add CurseForge and modpack browsing 2026-07-28 14:12:38 +02:00
objz c6205a337c refactor: reorganize source and tests 2026-07-27 11:28:57 +02:00
objz fbf8142ea0 feat(content): add managed content metadata layout 2026-07-25 12:14:30 +02:00
objz b94957a952 fix: formatting 2026-07-11 15:46:15 +02:00
objz b372571648 feat(config): add terminal image mode setting 2026-07-11 15:41:21 +02:00
objz 3d7f233e27 fixed clippy issues 2026-06-16 10:35:34 +02:00
objz 09bc8f26fb chore: improve rmcl diagnostic logging 2026-06-16 10:22:51 +02:00
objz 7a9dfa850d refactored: rework weak unit tests to catch real regressions
Audit found 9 confirmed-weak unit tests plus several newly-found ones that
asserted things equivalent to themselves, returned vacuous truth, or had
assertions guarded behind conditionals that silently swallowed failure.

Changes by file:

- auth/accounts.rs: create_offline_account_fields now pins the uuid to
  offline_uuid("TestPlayer") instead of !is_empty(); mutating the uuid
  derivation would fail this now.
- cli/mod.rs: parses_instance_list_subcommand drills into the list
  subcommand under instance rather than only verifying the instance
  group exists.
- config/theme.rs: border_style_roundtrip is now an rstest covering all
  four BorderStyle variants; mutating any non-Double arm is caught.
- instance/desktop.rs: removed desktop_path_returns_some (assertion was
  gated behind if let Some so could pass when the function returned
  None); build_content_linux* already covers the real behaviour.
- instance/launch/mod.rs: removed five predicate-only tests that
  asserted serde defaulting on LaunchProfile rather than invoking the
  migration predicate. Added two tests that actually call
  migrate_legacy_meta_if_needed (rstest over modern/legacy arg shapes)
  and migrate_legacy_loader_profile_if_needed (modern-with-inheritsFrom
  early-return). Renamed build_game_args_renders_upstream_arguments,
  dropping the misleading "and appends loader args" clause that the
  test never covered.
- instance/loader/mod.rs: removed test_vanilla_install_noop (no
  assertion at all) and test_vanilla_get_versions (asserted a hardcoded
  Ok(vec!["vanilla"]) return). Replaced test_vanilla_factory with an
  rstest covering all five ModLoader variants; a misordered match arm
  in get_installer is caught.
- migrate.rs: removed cleanup_instance_leftovers_handles_missing_dir
  (had no assertions and was redundant with
  cleanup_instance_leftovers_removes_shim_and_log4j).
- net/mod.rs: removed detect_java_falls_back_to_java which asserted
  !is_empty() against a function whose worst-case fallback is the
  literal string "java"; structurally uncatchable.
- tui/error_buffer.rs: peek_all_returns_newest_first and
  auto_assigned_ids_are_unique now tag their pushed events with a
  unique substring and filter peek_all_errors to just those, so the
  assertions actually fire instead of being silently skipped via
  if all.len() >= 2 when shared static state interfered.

Total: net zero change in test count (deletions and parameterised
replacements roughly balance), but mutation coverage of the surviving
suite is materially stronger.
2026-05-27 16:43:47 +02:00
objz 961983d1fe removed: 6 useless tests (4 theatre + 2 wrapper redundancy) 2026-05-26 20:59:59 +02:00
objz ae2524f2ce feat!: rename project from mcl/mcl-launcher to rmcl
Renames Cargo package, binary, internal path identifiers, java shim,
user-agent, log filename, desktop shortcut Exec lines, and CLI program
name. Wires src/migrate.rs into main() so existing users have their
on-disk data (~/.config/mcl/, ~/.local/share/mcl/, ~/.cache/mcl/) moved
to the new locations on first launch.

BREAKING CHANGE: binary is now named rmcl. Old paths are auto-migrated.
2026-05-13 21:06:34 +02:00
objz 5dbb2be873 no-mistakes(lint): fix(lint): rustfmt formatting in mods.rs 2026-04-25 14:25:04 +02:00
objz 52787b57c7 fix: switch default profile to terminal and fixed some comments 2026-04-18 19:44:59 +02:00
objz 971375bf1f fix: resolve clippy issues 2026-04-18 17:09:01 +02:00
objz 47dad69321 refactor: upgrade crates and restructure project 2026-04-18 16:59:27 +02:00
objz 973602fcfb test(config): add config loading tests 2026-02-22 15:15:18 +01:00
objz 638b14c921 test(config): add path resolution and deserialization tests 2026-02-21 14:25:02 +01:00
objz 80210364d5 feat(theme): add palette system and per-element theming 2026-01-24 19:18:09 +01:00
objz d4ffcca61c refactor: use THEME for all colors, add theme fields, fix forge installer 2025-10-04 19:15:38 +02:00
objz abacb830bc feat: add shared meta dir for downloads, skip cached 2025-08-09 15:46:08 +02:00
objz 6ff8ae64d5 refactor: merge theme into config, remove dead code 2025-08-09 14:52:44 +02:00
objz 8d8cf4805e feat: add paths and defaults config with graceful fallback 2025-07-05 14:45:11 +02:00
objz 159b21d39a refactor: extract cli and config into separate modules 2025-06-14 17:32:18 +02:00
72-S 8685fa9800 refactor(tui): rename instances to profiles 2025-03-11 19:10:18 +01:00
72-S ad3243cffe fix: update default config values 2025-03-09 00:40:01 +01:00
72-S f571aa3183 feat: improve config system 2025-03-08 22:33:21 +01:00
72-S 3bc5432a20 feat(tui): render instances as multi-line rows 2025-03-05 13:36:49 +01:00
72-S 96fe87fc69 feat(tui): add per-widget config, keybinds, and scrollbar 2025-02-16 21:22:45 +01:00
72-S 8f1977c10c feat: add config.toml 2025-02-09 18:51:10 +01:00
72-S d9c827b3ef feat: add logger and config structure 2025-01-30 13:57:23 +01:00