MCPcopy
hub / github.com/livekit/livekit / TestPackStreamId

Function TestPackStreamId

pkg/rtc/utils_test.go:30–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestPackStreamId(t *testing.T) {
31 packed := "PA_123abc|uuid-id"
32 pID, trackID := UnpackStreamID(packed)
33 require.Equal(t, livekit.ParticipantID("PA_123abc"), pID)
34 require.Equal(t, livekit.TrackID("uuid-id"), trackID)
35
36 require.Equal(t, packed, PackStreamID(pID, trackID))
37}
38
39func TestPackDataTrackLabel(t *testing.T) {
40 pID := livekit.ParticipantID("PA_123abc")

Callers

nothing calls this directly

Calls 4

UnpackStreamIDFunction · 0.85
PackStreamIDFunction · 0.85
TrackIDMethod · 0.65
ParticipantIDMethod · 0.45

Tested by

no test coverage detected