MCPcopy
hub / github.com/livekit/livekit / TestConvertErrToTwirp

Function TestConvertErrToTwirp

pkg/service/twirp_test.go:27–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestConvertErrToTwirp(t *testing.T) {
28 t.Run("handles not found", func(t *testing.T) {
29 err := ErrRoomNotFound
30 var tErr twirp.Error
31 require.True(t, errors.As(err, &tErr))
32 require.Equal(t, twirp.NotFound, tErr.Code())
33 })
34}

Callers

nothing calls this directly

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected