sociomantic-tsunami / ocean

General purpose, platform-dependent, high-performance library for D
Other
61 stars 56 forks source link

Prometheus: Reduce duplication of test code and imports #867

Closed Geod24 closed 2 years ago

Geod24 commented 2 years ago

The structs definition used in the test code were duplicated three times: use a single definition. Additionally, a lot of unnecessary imports were present, most likely because the code was moved from a module to a new one, and possibly because the code might not have used the Formatter, originally. The IEEE and time imports can be outright removed, and the SttatFormatter one was simplified so unittest code wouldn't have to change.

codecov[bot] commented 2 years ago

Codecov Report

Merging #867 (938f177) into v6.x.x (d772713) will increase coverage by 0.01%. The diff coverage is 100.00%.