原书出处
Mastering API Architecture
08
The sprout technique is covered in Michael Feather’s 2004 Working Effectively with Legacy Code. It is often very difficult to unit test code that wasn’t built with testing in mind. Sprout involves creating the new functionality elsewhere, testing it and adding it to a legacy method known as the insertion point. Another technique is to wrap the existing functionality by creating a new method
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Mastering API Architecture/_epub-src/OEBPS/ch08.xhtml#idm45236839873392
EPUB SHA-256:5be3275a289df0138f17f72c8e9c84987cbe07a5fe28c7cbc649d6b5cd8a14dd