Mocking os.GetEnv(“ENV_VAR”)

前端 未结 0 1752
余生分开走
余生分开走 2021-02-05 17:17

I am trying to mock the Go function os.GetEnv() in my test files so that I can get the desired value for a particular environment variable.

For example I hav

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