/tg/ Station 13 - Modules - TypesProc Details

species_config_sanity

Procs

RunSpecies IDs are used in keyed_list config entries and their config values can either be set implicitly or explicitly.

Proc Details

Run

Species IDs are used in keyed_list config entries and their config values can either be set implicitly or explicitly.

In order to accomplish this, the keyed_list looks for a specific splitter that is meant to separate the key from the value.

While it supports multiple instances of the splitter (for example, space) being present, the intent is ambiguous.

To combat that, this unit test runs through every species ID and make sure it doesn't contain the splitter character, so valid config entries are never ambiguous.