pulumi/pkg/codegen/testing/test
Eng Zer Jun 19d84ef1f3
test: use `T.Setenv` to set env vars in tests (#10234)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-07-24 10:41:44 +01:00
..
testdata test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
helpers.go testing: add eks schema for codegen tests (#9498) 2022-05-02 15:52:03 -07:00
program_driver.go dotnet program-gen now targets .NET 6 (#10143) 2022-07-21 21:04:02 +02:00
sdk_driver.go Add external enums all languages (#9933) 2022-07-06 11:35:31 -07:00
type_driver.go Correctly import plain types (#9430) 2022-04-21 11:29:30 +02:00