Skip to content

Commit

Permalink
add test to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ranakan19 committed Nov 12, 2024
1 parent 64f3f4d commit d2ea38a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2ea38a

Please sign in to comment.