MCPcopy
hub / github.com/livekit/livekit / newTestResolver

Function newTestResolver

pkg/rtc/subscriptionmanager_test.go:566–573  ·  view source on GitHub ↗
(hasPermission bool, hasTrack bool, pubIdentity livekit.ParticipantIdentity, pubID livekit.ParticipantID)

Source from the content-addressed store, hash-verified

564}
565
566func newTestResolver(hasPermission bool, hasTrack bool, pubIdentity livekit.ParticipantIdentity, pubID livekit.ParticipantID) *testResolver {
567 return &testResolver{
568 hasPermission: hasPermission,
569 hasTrack: hasTrack,
570 pubIdentity: pubIdentity,
571 pubID: pubID,
572 }
573}
574
575func (t *testResolver) SetPause(paused bool) {
576 t.lock.Lock()

Callers 5

TestSubscribeFunction · 0.85
TestUnsubscribeFunction · 0.85
TestSubscriptionLimitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected