Skip to main content
to stub

to stub

8.4
To make a simple fake version of a program part for testing
  • verb
  • /stʌb/
  • Specialized
translation icon : simular

It just means that when I go to boot my VM, womp womp, we've got to stub this.

Examples

  • And then if I really want to stub or flat, I'll use that.

  • To test the new feature, the developer decided to stub the component temporarily while working on the main code.

  • In order to simulate the database response, we can stub the service call with dummy data.

  • The programmer used a simple function to stub the behavior of the module during the testing phase.

Synonyms

to mock
vsto stub
  • Specialized
3 4.9

Replace a real part with a simple stand-in during tests

is a minimal placeholder that focuses on simple substitution rather than controlled behaviour
to stub out
vsto stub
  • Specialized
7.4

To replace a function in a program with a simple fake version for testing

is a minimal placeholder used mainly to stand in not a full temporary replacement

Antonyms

515 3.7

To put a plan or rule into action

Phrasal Verbs

to stub out
  • Informal
3 5.3

To press the burning end of a cigarette against a surface to put it out

to stub out
  • Specialized
7.4

To replace a function in a program with a simple fake version for testing

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
to stub
  • Specialized
8.4
placeholder
  • Specialized
6 4.0

Surface Forms

stub infinitive
stubbed past
stubbed past participle
stubbing present participle
stubs third person singular

Etymology

Stub (verb, in development) follows the same 'short piece' idea from stubb 'tree stump', so to stub a function is to make a short placeholder that stands in for the full code while you work.