Thanks for your help Chris
Introduced *dependency injection* in this code using Delegation Design
pattern with the help of interface.
Here's the details explanation
https://stackoverflow.com/a/59704965/5133838
Please share yours feedback.
On Sat, 11 Jan, 2020, 9:39 PM Chris Burkert,
wrote:
> Y
You could inject your dependencies. There is a funny talk by Liron Levin
[1] which helped me a lot.
1: https://youtu.be/_B_vCEiO4mA
prakash sharma schrieb am Sa. 11. Jan. 2020
um 16:24:
> Need help:
>
> https://stackoverflow.com/questions/59693971/mocked-method-not-working-in-golang-while-runni
Need help:
https://stackoverflow.com/questions/59693971/mocked-method-not-working-in-golang-while-running-the-test-cases
I am trying to mock an struct method in test cases but it is not working. I
want to mock *Validate* method here:
package main
import (
"fmt"
)
type DemoInterface interf