Method stub

Source: Wikipedia, the free encyclopedia.

A method stub or simply stub

procedure on a remote machine; such methods are often called mocks) 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
.

An example of a stub in pseudocode might be as follows:

temperature = ThermometerRead(Outside)
if temperature > 40 then
    print "It is hot!"
end if
function ThermometerRead(Source insideOrOutside)
    return 28
end function

The above pseudocode utilises the function ThermometerRead, which returns a temperature. While ThermometerRead would be intended to read some hardware device, this function currently does not contain the necessary code. So ThermometerRead does not, in essence,

argument
insideOrOutside) by the caller in its logic.

A stub

skeleton on the server-side.[3]

In the context of

NIOS
).

The small pieces of dummy code branched into—so as to allow a graceful exit when invoking a fat binary in the wrong environment—are also called (code) stubs.

See also

References

  1. .
  2. ^ "stub". WEBOPEDIA. 23 March 1998. Retrieved 2012-08-28.
  3. . Retrieved 2012-08-28.

External links