橙子的短想法
橙子的短想法
14:07 · Mar 10, 2022 · Thu
https://jesseduffield.com/Testing-Private-Methods/
Jesseduffield
Still No Consensus On Testing Private Methods
Yesterday, while running a session at work on Rust, I offhandedly remarked ‘I think we can all agree that when writing unit tests, private methods shouldn’t be directly tested except in some special situations’ and to my suprise, I had thought wrong. A mini…
 
 
Home
Powered by BroadcastChannel & Sepia