Add a pretend.ANY
See original GitHub issueSo with the call recorder it’s often a useful thing to be able to make a parameter that matches anything. Perhaps it’s a current timestamp or a random value, whatever it is you don’t know what it is.
Mock has mock.ANY
and I’m finding myself installing mock just for mock.ANY
.
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Pretend User Guide
From Script to Screen. Pretend lets you tell your story. Pretend helps create and develop stories from writing to rough cut. You have...
Read more >This Is the Part Where You Pretend to Add Value: A Dilbert ...
This Is the Part Where You Pretend to Add Value: A Dilbert Book (Volume 31) [Adams, Scott] on Amazon.com. *FREE* shipping on qualifying...
Read more >My Pretend Home & Family 4+ - App Store
Play in the backyard pool, and hop into one of the fun floats! Have a BBQ and eat some food! Play with your...
Read more >tk3369/Pretend.jl: Let's play pretend!
Pretend.activate() # Turn on the Pretend framework # Annotate any function with @mockable macro @mockable add(x, y) = x + y # Apply...
Read more >Add Pretend Pets to Mom's Duties
“To me it's just like a job,” Ms. Selkow said. “I have to get in, take care of all their things, and I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So the necessary code is:
I still feel pretty weird about this,
call_recorder
may have been a mistake.Nope, I can just reuse that. My only thought was to have it in
pretend
since it’ll be used solely (in my case) withpretend
’s other APIs, but that’s not a requirement.