to mock
- verb
- /mɑk/
- Specialized
- To test the software effectively, developers often mock the database to create controlled environments.
Examples
-
Before the launch, the team will mock the user interface to gather feedback on its design.
-
- Then it's okay if we mock it.
-
And I'm having Graphics mock something up to show it visually.
-
Below, I've mocked up a "screenshot" of what that sort of display could look like, assuming it's possible.
Blog text (17) -
But the type system does just as well in exposing errors that are hard to test, either because they show up only in odd corner cases that are easy to miss in testing, or because they show up in complex systems that are difficult to mock up and exercise exhaustively.
Academic text (2011) -
During the testing phase, we can mock the API to simulate different responses and ensure reliability.
Synonyms
Make a model of something to test or study it
To make a program or device act like another machine, for example an old game console
To replace a function in a program with a simple fake version for testing
To make a simple fake version of a program part for testing
Phrasal Verbs
Compounds
A sweater or top with a short tight collar that stands up and does not fold over
- South African
A shrub with a thick, fleshy stem and bright pink and white flowers that bloom after the leaves fall
A short soft collar that stands up around the neck and is sewn to the top
How Realistic
- Specialized
- Specialized
- Specialized
- Specialized
Surface Forms
Etymology
In computing, to mock something borrows the idea of imitation from the old French moquer 'to laugh at', but here it shifted to mean 'to pretend' or 'copy'. So to mock an API is to make a pretend version you can control during tests.