[Refactor] Move exact search specific test from KNNWeightTests to ExactSearcherTests #2180
Labels
Refactoring
Improve the design, structure, and implementation while preserving its functionality
Currently, we use KNNWeightTests to test exact search methods for unit test. Since Exact Search had one function, it was no needed to have it's own Test class. Now we are adding more features to exact search, hence, it is better mock ExactSearcher in KNNWeightTests and add unit test inside ExactSearcherTest. This will improve readability and visibility of unit test whenever new feature is added.
Example
The text was updated successfully, but these errors were encountered: