Closed ramenhog closed 6 years ago
@dongbohu @mhuyck I want to write a unit test for this bug, but _filteredSearchResults
is a private function. Is there a better way to test this without making it public function?
@ramenhog I took a look at the code but couldn't think of a better way.
@dongbohu should I make it public just for the sole purpose of testing it?...that feels weird
@ramenhog I agree it will be weird to set a function to public solely for testing purpose. Can you just test the public function that calls this one?
Issue Number
153
Purpose/Implementation Notes
Types of changes
What types of changes does your code introduce? Put an
x
in the boxes that applyFunctional tests
Checklist
Put an
x
in the boxes that apply.