mirror of
https://github.com/FluxaMedia/fluxa-core.git
synced 2026-08-07 01:08:50 +00:00
Per the robustness plan's §8: a tests/wire/ directory holds one real AppAction input per representative action family, each paired with a checked-in golden DispatchResult captured from an actual dispatch (a new #[cfg(test)] wire_fixtures_match_golden_dispatch_output test compares against it, with UPDATE_WIRE_FIXTURES=1 to regenerate when a change is intentional). Any future camelCase/field drift on the dispatch/completeEffect wire now fails in this repo instead of surfacing as a silent Android/desktop regression. Also add fuzz/fuzz_targets/engine_dispatch.rs, feeding arbitrary bytes into both headless_engine_dispatch_json and headless_engine_complete_effect_json against one engine handle — this is the one path in the crate that runs global engine-mutating logic without a catch_unwind guard on the desktop call path, so it's the highest-value fuzz target missing from fuzz/. Exposes the four headless_engine entry points as `pub` (still unreachable outside the crate except through the fuzzing-gated `fuzz_targets` re-export module) following the same pattern already used for parse_manifest and the content_identity helpers.
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"effects": [],
|
|
"state": {
|
|
"home": {
|
|
"activeProfile": {
|
|
"id": "p1",
|
|
"name": "Default"
|
|
},
|
|
"billboard": null,
|
|
"categories": [],
|
|
"continueWatching": [],
|
|
"error": null,
|
|
"externalContinueWatching": [],
|
|
"generation": 0,
|
|
"isDirectLoading": false,
|
|
"isLoading": false,
|
|
"metadataFeeds": [],
|
|
"paging": {
|
|
"categoryId": "",
|
|
"error": null,
|
|
"isLoading": false,
|
|
"items": null
|
|
},
|
|
"userAddons": [],
|
|
"watchlist": []
|
|
},
|
|
"library": {
|
|
"activeProfileId": "p1",
|
|
"completed": null,
|
|
"continueWatching": null,
|
|
"dropped": null,
|
|
"error": null,
|
|
"generation": 0,
|
|
"isLoading": false,
|
|
"lastCommand": null,
|
|
"lastWatchedSync": null,
|
|
"lastWatchedSyncError": null,
|
|
"lastWrite": null,
|
|
"lastWriteError": null,
|
|
"liked": null,
|
|
"pendingPlaybackProgress": null,
|
|
"savedPlaybackProgress": null,
|
|
"watched": null,
|
|
"watchlist": null
|
|
},
|
|
"profile": {
|
|
"active": {
|
|
"id": "p1",
|
|
"name": "Default"
|
|
},
|
|
"activeProfileId": "p1"
|
|
}
|
|
}
|
|
}
|