uDALES / u-dales

uDALES: large-eddy-simulation software for urban flow, dispersion and microclimate modelling
https://udales.github.io/u-dales
GNU General Public License v3.0
47 stars 17 forks source link

Identify unit testable sections #203

Open cc-a opened 3 weeks ago

cc-a commented 3 weeks ago

Unit testing of codes with large amounts of global state can be challenging. As a starting point we should try to identify sections that could be unit tested. Ideal candidates would be pure functions. Failing that, functions or sub-routines with minimal side effects that avoid operations with global (module) level variables.