Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Sound & Video
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook

Mockingbird

Tutorials

  • WritingMockTestsWithMockingbird

Guides

  • Mockingbird

Symbols

  • MockDefinitionGroup
  • MockDefinition
  • MockEvaluate
  • MockEvaluateReap
  • MockPropertyValuePatternTest
  • MockPropertyValueQ
  • MockSow
Mockingbird
The Mockingbird package provides utilities for storing definitions in an unevaluated form and installing them temporarily in a localized manner. This is particularly useful for writing software tests involving "mocked" or "stubbed" versions of built-in or custom functions, but can also be used more generally in a variety of development and debugging scenarios.
MockDefinition
— represents a single "mock" definition
MockDefinitionGroup
— represents a group of mock definitions
MockEvaluate
— evaluate an expression after locally installing one or more mock definitions
MockEvaluateReap
— evaluate while catching intermediate expressions sown with
MockSow
MockSow
— sow an expression to be caught by
MockEvaluateReap
MockPropertyValueQ
 ▪
MockPropertyValuePatternTest
Tutorials
▪
Writing Mock Tests with Mockingbird

© 2023 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com