pulumi/sdk/go/common/util
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
..
archive sdk/go/common/util cleanup 2023-03-10 08:49:00 +00:00
buildutil sdk/go/common/util cleanup 2023-03-10 08:49:00 +00:00
ciutil chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
cmdutil cmdutil: Support errors.Join-based multi-errors (#13813) 2023-09-01 19:01:16 +00:00
contract sdk/contract: Deprecate non-f variants 2023-03-03 14:37:59 -08:00
deepcopy all: Fix revive issues 2023-03-21 08:55:11 -07:00
env [cli/new] Support SSH-style Git URLs 2023-08-02 09:29:34 -07:00
executable sdk/go/common/util cleanup 2023-03-10 08:49:00 +00:00
fsutil Make convert more lenient 2023-06-08 11:14:31 +01:00
gitutil Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
goversion sdk/go/common/util cleanup 2023-03-10 08:49:00 +00:00
httputil all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
logging Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
mapper Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
result Support bailing from RunFunc (#13804) 2023-08-29 07:43:40 +00:00
retry sdk/common/retry: Fix extraneous backoff 2023-03-24 16:39:02 -07:00
rpcutil all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
yamlutil all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00