/tg/ Station 13 - Modules - TypesVar Details - Proc Details

unit_test

Vars

abstract_typeDo not instantiate if type matches this
priorityThe priority of the test, the larger it is the later it fires
run_loc_floor_bottom_leftThe bottom left floor turf of the testing zone
run_loc_floor_top_rightThe top right floor turf of the testing zone
uncreatablesList of atoms that we don't want to ever initialize in an agnostic context, like for Create and Destroy. Stored on the base datum for usability in other relevant tests that need this data.

Procs

allocateAllocates an instance of the provided type, and places it somewhere in an available loc Instances allocated through this proc will be destroyed when the test is over
build_list_of_uncreatablesBuilds (and returns) a list of atoms that we shouldn't initialize in generic testing, like Create and Destroy. It is appreciated to add the reason why the atom shouldn't be initialized if you add it to this list.
get_flat_icon_for_all_directionsHelper for screenshot tests to take an image of an atom from all directions and insert it into one icon
log_for_testLogs a test message. Will use GitHub action syntax found at https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
restore_atmosResets the air of our testing room to its default

Var Details

abstract_type

Do not instantiate if type matches this

priority

The priority of the test, the larger it is the later it fires

run_loc_floor_bottom_left

The bottom left floor turf of the testing zone

run_loc_floor_top_right

The top right floor turf of the testing zone

uncreatables

List of atoms that we don't want to ever initialize in an agnostic context, like for Create and Destroy. Stored on the base datum for usability in other relevant tests that need this data.

Proc Details

allocate

Allocates an instance of the provided type, and places it somewhere in an available loc Instances allocated through this proc will be destroyed when the test is over

build_list_of_uncreatables

Builds (and returns) a list of atoms that we shouldn't initialize in generic testing, like Create and Destroy. It is appreciated to add the reason why the atom shouldn't be initialized if you add it to this list.

get_flat_icon_for_all_directions

Helper for screenshot tests to take an image of an atom from all directions and insert it into one icon

log_for_test

Logs a test message. Will use GitHub action syntax found at https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions

restore_atmos

Resets the air of our testing room to its default