Mocking struct method with Testify without an interface

前端 未结 0 888
再見小時候
再見小時候 2021-02-13 22:13

I have a one-liner function that I\'d like to unit test.

func Unseal(workdir string) error {
  err := internal.Command{Name: "vault", Workdir: workdir}.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题