Mocking overloaded function

2024-01-08 Thread Strinnityk
Thank you for all your responses, they were quite insightful! So, I've tried running all your proposals and I always arrive at `Error: 'add' cannot be passed to a procvar`. Which, I understand, means I can't mock them because they're built-in, as @jyapayne mentioned. Out of curiosity, I take t

How to mock overloaded function

2024-01-05 Thread Strinnityk
Hey there! I’ve been trying to mock a specific overload of the `system.add` function call using [this](https://forum.nim-lang.org/t/9255#60617) `mock` template. I’ve had luck with mocking non-overloaded functions but not this one. The main issue I’m facing (for now) is I’m not able to retrieve

Mocking overloaded function

2024-01-05 Thread Strinnityk
Hey there! I’ve been trying to mock a specific overload of the `system.add` function call using [this](https://forum.nim-lang.org/t/9255#60617) `mock` template. I’ve had luck with mocking non-overloaded functions but not this one. The main issue I’m facing (for now) is I’m not able to retrieve