Skip to content

Commit

Permalink
[WIP] Add further tests for UUID
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Apr 23, 2024
1 parent aadea09 commit 358be5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions comid/classid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,15 @@ func TestClassID_SetOID_bad(t *testing.T) {
}
}

func TestClassID_SetUUID_GetUUID_OK(t *testing.T) {
class := &ClassID{}
class = class.SetUUID(TestUUID)
require.NotNil(t, class)
uuid, err := class.GetUUID()
require.NoError(t, err)
assert.Equal(t, TestUUID, uuid)
}

func Test_NewImplIDClassID(t *testing.T) {
classID, err := NewImplIDClassID(nil)
expected := [32]byte{}
Expand Down

0 comments on commit 358be5a

Please sign in to comment.