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
Wolfram`Mockingbird`
MockEvaluateReap
​
MockEvaluateReap[defs,expr]
evaluates
expr
with mock definitions
defs
in place, catching expressions sown by
MockSow
[expr]
.
​
MockEvaluateReap[defs,expr,patt]
​ reaps expressions sown by
MockSow
[expr,tag]
where
tag
matches
patt
.
​
MockEvaluateReap[defs,expr,{
patt
1
,
patt
2
,…}]
​ reaps expressions thrown with tags that match any of the
patt
i
.
​
MockEvaluateReap[defs,expr,
All
]
​ reaps expressions thrown with any tag.
Details

Examples  
(6)
Basic Examples  
(1)
In[1]:=
Needs["Wolfram`Mockingbird`"]
Reap an intermediate result sown during mock evaluation:
In[2]:=
MockEvaluateReap
​​
MockDefinition
f[x_]:=Expand
MockSow
[(x/2)^3],​​f[a+b]​​
Out[2]=

3
a
8
+
3
2
a
b
8
+
3a
2
b
8
+
3
b
8
,
1
8
3
(a+b)

Scope  
(2)

Options  
(1)

Applications  
(1)

Possible Issues  
(1)

SeeAlso
MockDefinition
 
▪
MockEvaluate
 
▪
MockSow
 
▪
Reap
 
▪
Sow
TechNotes
▪
Writing Mock Tests with Mockingbird
RelatedGuides
▪
Mockingbird
▪
Writing Mock Tests with Mockingbird

© 2023 Wolfram. All rights reserved.

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