-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add contract market tests #2294
Add contract market tests #2294
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2294 +/- ##
============================================
+ Coverage 8.35% 10.28% +1.92%
- Complexity 2601 3408 +807
============================================
Files 672 674 +2
Lines 95008 94902 -106
Branches 15965 15933 -32
============================================
+ Hits 7934 9756 +1822
+ Misses 86008 83776 -2232
- Partials 1066 1370 +304
Continue to review full report at Codecov.
|
1d8dff2
to
a927036
Compare
Looks like by removing the incidental thread load of Systems I decreased coverage in tests that never really used it anyways. I'll add a test to load the data and check it. |
- Likewise rename Factions::generate to loadDefault and load
This adds some basic contract market tests to avoid situations like #2283 in the future.
In order to accomplish this I needed to do four things first:
Systems::setInstance
to let me mock static usages ofSystems.getInstance()
RandomFactionGenerator::setInstance
to let me mock static usages ofRandomFactionGenerator::getInstance()
Faction
intoFactions
and make them instance methodsFactions::getInstance()
, andFactions::setInstance
to let me mock the previously static methodsThat commit is acb530c
The subsequent commits all make use of that work to add basic tests for the
ContractMarket
.