Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood committed Dec 20, 2024
1 parent 70e6ddf commit 7e4fa2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/ebpf/maps/generic_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,13 @@ func TestValidateMapKeyValueSize(t *testing.T) {
assert.Error(t, err)
assert.Nil(t, gm)

gm2, err := Map[uint64, uint64](m)
gm2, err := Map[uint64, uint32](m)
assert.Error(t, err)
assert.Nil(t, gm2)

gm3, err := Map[uint64, uint64](m)
assert.NoError(t, err)
assert.NotNil(t, gm2)
assert.NotNil(t, gm3)
}

func TestGenericHashMapCanUseBatchAPI(t *testing.T) {
Expand Down

0 comments on commit 7e4fa2a

Please sign in to comment.