EnergySystemsModellingLab/MUSE2

Add more tests for investment step

開放

#1,250 建立於 2026年4月16日

 (0 則留言) (0 個反應) (0 位負責人)Rust (3 個分叉)auto 404
good first issuemuse xiiitest

倉庫指標

星標
 (7 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

While there are some unit tests in src/simulation/investment.rs, there are also many functions without dedicated unit tests. This is particularly true for simple utility functions (e.g. get_demand_portion_for_market) with clear inputs and outputs. For more complex functions, we should at least consider how we might test them, e.g. by breaking them up.

Relying on regression tests to detect problems with this part of the code is not a robust approach.

貢獻者指南