pulumi/pkg/codegen/dotnet
Fraser Waters cf5b4a2790
Use `assert.NoError` rather than `assert.Nil` (#14233)
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->
Likewise `require.NoError` instead of `require.Nil`, and `assert.Error`
rather than `assert.NotNil`.

The error variants of these functions print the errors nicer for test
failures using `Error()` rather than `GoString()`.

For bail errors this is _much_ better than the `result.Result` days
where we now get errors like:
```
Error:      	Received unexpected error:
            	BAIL: inner error
```
instead of:
```
Error:      	Expected nil, but got: &simpleResult{}
```

Also print the bail error in `TestPlan.Run` so we can see the
description of it.
2023-10-13 09:46:07 +00:00
..
gen_program_test Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
doc.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go [dotnet/sdk-gen] Fixes potential conflicts when generating resources called System (#14011) 2023-09-22 13:41:15 +00:00
gen_intrinsics.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_program.go [programgen/csharp] Fixes compiling an empty list of expressions from object properties (#14027) 2023-09-28 12:43:35 +00:00
gen_program_expressions.go [programgen/csharp] Fixes compiling an empty list of expressions from object properties (#14027) 2023-09-28 12:43:35 +00:00
gen_program_test.go Remove dotnet 2022-12-13 16:13:53 +00:00
gen_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
git_ignore.go Add GenerateProject to codegen (#9475) 2022-04-29 17:04:04 +01:00
importer.go Respect schema versions (toggled via flag) (#8881) 2022-02-03 17:07:13 +01:00
templates.go Remove UseSharedCompilation from .csproj codegen 2023-06-09 23:37:10 +01:00
test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
utilities.go Add "NotImplemented" PCL function intrinsic 2023-03-10 12:14:28 +01:00
utilities_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00