Skip to main content
stub

stub

1 7.8
A small piece of code that pretends to be a real part during testing
  • noun
  • /stʌb/
  • Specialized
translation icon : stub
  • OK, we're going to learn about protocol stubs next week.

Examples

  • RObject.java implements stubs for all method names seen in the script.

    Blog text (23)
  • First, Verve initially included an off-the-shelf, unverified debugger stub, written in C++.

    Academic text (2011)
  • The second issue is how does this stub connect to any name server?

  • The best method here would be either split-brain DNS or a stub zone.

    Blog text (8)
  • Just like in Python, you have the if(main) to make the stub so you could make components pretty easy!

    Blog text (10)
  • During the software testing phase, developers often use a stub to simulate a database response without a live connection.

  • The team created a simple stub to test the functions before the actual components were ready.

  • Using a stub in their code allowed them to develop the application without waiting for the entire system to be completed.

Synonyms

stand-in
vsstub
  • Specialized
1 5.8

A simple fake used in software tests to act like a real service

is a small simple test piece that returns fixed simulated responses

Compounds

10 1.4

A small piece you keep from a ticket after you enter to show proof

2 4.4

A small paper record you keep after you tear off a check showing the payment

7.4

A short thick metal spike used to hold things when length is not needed

How Complete

to mock
  • Specialized
3 4.9
stub
  • Specialized
1 7.8
placeholder
  • Specialized
6 4.0

Surface Forms

stub singular
stubs plural

Etymology

Stub in computing follows the same idea from old stubb 'tree stump' meaning a short piece that stands for the rest, so a code stub is a small placeholder that acts like the full part during testing.