INNER CODE UNIT · Go
TestDeleteInvalidConfig
vmware-tanzu/sonobuoy · pkg/client/delete_test.go:26
func TestDeleteInvalidConfig(t *testing.T) {
testcases := []struct {
desc string
config *DeleteConfig
expectedErrorMsg string
}{
{
desc: "Passing a nil config results in an error",
config: nil,
expectedErrorMsg: "nil DeleteConfig provided",
},
{
desc: "Passing an invalid config with an empty namespace results in an error",
config: &DeleteConfig{},
expectedErrorMsg: "config validation failed",
},
}