Comments (2)
Yes! This was an oversight, because I barely ever use stub
and stub_with
.
I think stub
should work the same as expect
, as you've already done in #58. Thanks!
For stub_with
, we probably can't defer to Mox
directly. We likely need to copy the Mox implementation and make it stub with protected functions instead.
from hammox.
I'll close this now as stub
has a PR in #58 and I created an issue for stub_with
in #59!
from hammox.
Related Issues (20)
- match_type missing head for bool?
- [idea] add a mix task to setup an area
- ensure_compiled! issue when using Hammox.Protect
- Display behaviour and callback in errors
- How to test bad behaviour HOT 2
- obscure error when module to `protect` does not exist HOT 2
- Errors on Parametrized Types HOT 3
- add `protect` shortcut for behaviours and implementations in the same module HOT 1
- Hammox breaks when there is a @typep HOT 1
- respect opaqueness of `@opaque` types
- Hammox slow with stripity_stripe lib HOT 12
- CaseClauseError with return type of Ecto.Changeset.t() HOT 6
- type check stubs created with `stub_with`
- better documentation for `protect` HOT 1
- Support erlang records
- GenServer.handle_call/3 mock ? HOT 2
- Type guards in specs not supported HOT 1
- "Cannot load module" error gets swallowed
- `CaseClauseError` when Displaying Complex Types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hammox.