/tg/ Station 13 - Modules - Types

code/modules/unit_tests/~nova/cyborg_customization.dm

/datum/preferences/cyborg_save_failure_testFocused tests for the bounded cyborg layout contract. Counts preference reads and saves, so rejected requests can be shown to do no work.
/datum/json_savefile/cyborg_customization/write_failure_testInjects sidecar write failures without touching player files.
/datum/unit_test/cyborg_mock_preferencesKeep mock connections out of real registries and detach them on every exit path.
/datum/unit_test/cyborg_creator_draft_lifecycleExercise the creator protocol and sidecar writes, without a UI client. Removing either the slot guard or the window-close flush must break this regression.
/datum/unit_test/cyborg_creator_model_default_previewPreviewing a model default must not replace or mutate the active draft.
/datum/unit_test/cyborg_creator_admissionRejected creator requests must leave the draft/context intact and skip save preparation.
/datum/unit_test/cyborg_interaction_component_lists_safe_actionsLoads authored interaction data independently of the deployment's server configuration.
/datum/unit_test/cyborg_customization_applies_through_silicon_prefsJob spawns, ghost cafe and mapped ghost roles, mind transfers and admin direct control all reach transfer_silicon_prefs().
/datum/json_savefile/cyborg_customization/review_failure_storeRegression coverage for failed-write ownership, backend close and forced model installation.
/proc/cyborg_test_run_queued_saveRuns the save SScyborg_layout_saves would run for store on its next fire. Returns FALSE while none is due.
/datum/unit_test/cyborg_ui_assignment_projectionUI assignment projection must not expose or mutate unrelated saved chassis assignments.
/datum/unit_test/cyborg_ui_default_layout_projectionAvailability is sufficient until the user opens the saved-appearance view.
/datum/unit_test/cyborg_ui_pending_stage_projectionOnly a pixel wait needs a second wire stage; keep its server snapshot coherent.
/datum/asset/cyborg_model_gallery/acquisition_wait_testForce the native acquisition wait without network clients or private snapshots.
/datum/unit_test/cyborg_ui_animation_projectionWire omission must resolve to the exact original animation, including moving frames.
/datum/unit_test/cyborg_job_spawn_snapshot_ownerJob spawns apply prefs before the player enters the body. The snapshot still belongs to that player, so entering the body again keeps it, and its runtime controls answer to them.