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`
MockPropertyValuePatternTest
​
MockPropertyValuePatternTest[rules]
yields a
PatternTest
matching an
expr
where
MockPropertyValueQ
[expr,rules]
gives
True
.
​
MockPropertyValuePatternTest[patt,rules]
​ matches only if
expr
matches
patt
.
Details

Examples  
(2)
Basic Examples  
(1)
In[1]:=
Needs["Wolfram`Mockingbird`"]
Match an
HTTPResponse
expression that has status code 200:
In[2]:=
res=URLRead["http://www.wolframalpha.com/"]​​res["StatusCode"]
Out[2]=
HTTPResponse
Status: OK
Content type: text/html; charset=utf-8

Out[2]=
200
In[3]:=
MatchQres,
MockPropertyValuePatternTest
[{"StatusCode"->200}]
Out[3]=
True
Properties & Relations  
(1)

SeeAlso
MockPropertyValueQ
 
▪
KeyValuePattern
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