EnergySystemsModellingLab/MUSE2

Add more tests for investment step

オープン

#1,250 opened on 2026/04/16

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (3 件のフォーク)auto 404
good first issuemuse xiiitest

Repository metrics

Stars
 (7 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド