diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index f048736..e23d08b 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -38,6 +38,11 @@ func TestNewClientOK(t *testing.T) { require.NoError(t, err) assert.NotNil(t, cl) } +func TestNewClientFromRestConfigError(t *testing.T) { + cl, err := client.NewClientFromRestConfig(nil) + require.EqualError(t, err, "cannot create client: must provide non-nil rest.Config to client.New") + require.Nil(t, cl) +} func TestNewClientFail(t *testing.T) { // when