Computer Programming
Using Sprout and Wrap Techniques
Sprout techniques involve creating new methods or classes to encapsulate additional functionality or refactored behavior. These techniques help to safely introduce changes while preserving existing behavior, minimizing risks, and improving testability. In this course we will use sprout techniques with methods and objects to refactor or expand capabilities.
C++
GoogleTest
6 lessons
27 practices
4 hours
Badge for Software Development Practices,
Course details
Using the Sprout Method for Safe Code Refactoring in C++
Implementing Order Processing with Surcharges
Testing the Order Surcharge Logic
Testing Surcharge Processing with Empty Orders
Implementing Parameterized Tests for Negative Surcharge Validation
Parameterized Tests for Valid Surcharges
Turn screen time into skills time
Practice anytime, anywhere with our mobile app.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal