Wolfram Language Paclet Repository (Under Development)

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • External Interfaces & Connections
    • Geographic Data & Computation
    • Graphs & Networks
    • Images
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Sound & Video
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
    • Using Paclets
    • Creating Paclets
    • New Definition Notebook
    • Random Paclet
    • Alphabetical List

Mockingbird

Guides

  • Mockingbird

Symbols

  • MockDefinitionGroup
  • MockDefinition
  • MockEvaluate
  • MockEvaluateReap
  • MockPropertyValuePatternTest
  • MockPropertyValueQ
  • MockSow

Tutorials

  • WritingMockTestsWithMockingbird
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

Powered by the Wolfram Cloud More about Wolfram Technology

© 2022 Wolfram Research, Inc. All rights reserved. Terms of Use Privacy Contact Us