Golang mocking struct method with Testify without an interface

后端 未结 0 1770
独厮守ぢ
独厮守ぢ 2021-02-13 22:00

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}.         


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