(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestParticipantDataBlob_AddAndGet(t *testing.T) { |
| 43 | a := newTestDataBlob() |
| 44 | |
| 45 | key := genericKey("blob-1") |
| 46 | contents := []byte("definition-bytes") |
| 47 | |
| 48 | a.Add(&livekit.DataBlob{Key: key, Contents: contents}) |
| 49 | |
| 50 | got := a.Get(key) |
| 51 | require.NotNil(t, got) |
| 52 | require.Equal(t, key.String(), got.Key.String()) |
| 53 | require.Equal(t, contents, got.Contents) |
| 54 | } |
| 55 | |
| 56 | func TestParticipantDataBlob_AddOverwrites(t *testing.T) { |
| 57 | a := newTestDataBlob() |
nothing calls this directly
no test coverage detected