Who can use this feature?
Team members and Admins can access this feature.
What are Stubs:
Stubs are used commonly as placeholders for implementation of a known interface, where the interface is known but the implementation is not yet finalized. The stub contains just enough code to allow it to be compiled and linked with the rest of the program.
A stub is a piece of code used to stand in for some other programming functionality. A stub may simulate the behavior of existing code (such as a procedure on a remote machine) or be a temporary substitute for yet-to-be-developed code. Stubs are therefore most useful in porting, distributed, computing as well as general software development and testing.
- Go to the dashboard and click on Library, it will lead you to the directory filled with questions.
- Click on any tests and that will lead you to the next page ahead, in there you will see several options for Problem Details.
- Search for Stubs option.
- Click on Add New, go ahead and select the technology, a dropdown list will appear to select the language and add the stub code for it.
- Click on Save and you are done.
NOTE: Stubs are boilerplate code for a solution that is available to the solution creator. You can add language-specific stubs for each problem. If no stubs are present, default stubs are used.