Conversation
Notices
-
Embed this notice
feld (feld@bikeshed.party)'s status on Sunday, 04-Jun-2023 23:48:38 JST feld Hmmm that's interesting -
Embed this notice
Wilfred Hughes (wilfredh@mastodon.social)'s status on Sunday, 04-Jun-2023 23:48:39 JST Wilfred Hughes Rust has an elegant solution to testing private functions: you put the test in the file that defines the function. It generally works well.
I've even seen people argue that it makes mocking much less necessary! I've not felt the need to mock in Rust so far.
-
Embed this notice