atmospherics_sanity ![code/modules/unit_tests/atmospherics_sanity.dm 4](git.png)
This test checks that all expected areas are connected to a starting area
Vars | |
crawled_areas | List of areas already crawled, to prevent needless crawling |
---|---|
crawls | We run this test in parallel, so we need to keep track of how many crawls are running This is to prevent stack overflow mostly |
remaining_areas | List of areas remaining to be checked |
starting_areas | List of areas to start crawling from |
Procs | |
crawl_area | Crawls through an area, iterating over all vents/scrubbers and their connected pipelines |
crawl_areas | Iterates over starting_areas and ensures that all goal areas are connected to atleast one start |
crawl_pipeline | Crawls through a pipeline, iterating over all connected machines and their connected areas |
Var Details
crawled_areas ![code/modules/unit_tests/atmospherics_sanity.dm 12](git.png)
List of areas already crawled, to prevent needless crawling
crawls ![code/modules/unit_tests/atmospherics_sanity.dm 19](git.png)
We run this test in parallel, so we need to keep track of how many crawls are running This is to prevent stack overflow mostly
remaining_areas ![code/modules/unit_tests/atmospherics_sanity.dm 9](git.png)
List of areas remaining to be checked
starting_areas ![code/modules/unit_tests/atmospherics_sanity.dm 15](git.png)
List of areas to start crawling from
Proc Details
crawl_area
Crawls through an area, iterating over all vents/scrubbers and their connected pipelines
crawl_areas
Iterates over starting_areas and ensures that all goal areas are connected to atleast one start
crawl_pipeline
Crawls through a pipeline, iterating over all connected machines and their connected areas