Comments (3)
I was able to reproduce it. It affects JVM and Wasm. Fixing it for JVM should not be a big problem, but it might be problematic for Wasm. Anyway, I will do my best to provide a fix.
from mokkery.
Fixed in Mokkery 1.6.1. Thank you for reporting the issue!
- For JVM all value classes should work properly now.
- For Wasm it fixes only standard library value classes (
Result
,Duration
). Other value classes have to be registered with:
AutofillProvider.forInternals.types.register { ValueClass(null) }
- Other targets were not affected.
from mokkery.
Thank you! At the moment, fixing the JVM compatibility is the only thing I need (atm, haha). The library looks nice, but the lack of this feature prevents me from adopting it.
from mokkery.
Related Issues (20)
- Kotlin 2.0.0 support HOT 8
- Is not possible to mock a `data class` HOT 3
- Mocking `abstract`/`open` classes requires default constructor HOT 2
- Wasm-WASI Coroutines support HOT 1
- Kotlin 2.0.20 HOT 1
- NotImplementedError Error thrown during migration HOT 4
- NoSuchElementException thrown during migration HOT 2
- NullPointerException thrown during migration HOT 3
- Provide a short hand way to define every/everySuspend with all arg matchers set to any() HOT 2
- Mocked interface doesn't return the value already set with every HOT 4
- Provide way to return a computed value not just a straight value with returns/returnsSuccess HOT 2
- MockMode.autoUnit does not work when mocking functional types HOT 1
- Provide a way to block the return from a mocked suspend function HOT 10
- Not able to verify objects by their content HOT 2
- no such method: ContextIndependentParameterRenderer HOT 3
- Mokkery & all-open plugin on WasmJs HOT 6
- Shorthand for adding mokkery-coroutines does not work HOT 3
- New returnsSuccessBy lambda function should pass CallArgs HOT 6
- Provide callback mechanism when calls are made
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 mokkery.