issues
search
stockparfait
/
experiments
Statistical experiments with financial data
Apache License 2.0
0
stars
0
forks
source link
Refactor config and tests
#134
Closed
sergey-a-berezin
closed
1 year ago
sergey-a-berezin
commented
1 year ago
Add a private method to
ExperimentConfig
to prevent out-of-package instances;
Split the uber-config test into individual experiment config tests into separate tests, for debugability;
Use
switch x.(type) {...}
to select experiments; this makes
Name()
method the only place where experiment's string name is defined.
ExperimentConfig
to prevent out-of-package instances;switch x.(type) {...}
to select experiments; this makesName()
method the only place where experiment's string name is defined.