Dummy code
From Wikipedia, the free encyclopedia
It has been suggested that this article or section be merged into Mock object . (Discuss) |
This article does not cite any references or sources. (June 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
In computer programming, dummy code is inserted in a program skeleton to simulate processing and avoid compilation error messages. It may involve empty function declarations, or functions that return a correct result only for a simple test case where the expected response of the code is known. Program skeletons with dummy code resemble pseudocode, but allow parsing, compilation and testing of the code. Dummy code facilitates a top-down design approach, where a partially-functional system with complete high-level structures is designed and coded, and this system is then expanded to fulfill the requirements for the project to a successively higher level of detail.
In object-oriented programming, dummy code corresponds to an Abstract method.