mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-04-18 23:36:09 +00:00
0ee4f0417dd26deb898970be43ade7e22d20fceb
The type signatures of these methods make them easy to mix up. `require.Error()` asserts that there is any non-nil error -- the last parameter is an optional human-readable message to log when the assertion fails. `require.EqualError()` asserts that there is a non-nil error _and_ that when you call `err.Error()`, the string matches the expected value. It also takes an additional optional parameter to specify the log message. Signed-off-by: Matt Moyer <moyerm@vmware.com>
placeholder-name
Description
Languages
Go
97.3%
Shell
1.6%
HTML
0.4%
SCSS
0.4%
CSS
0.1%
Other
0.1%