MCPcopy Create free account
hub / github.com/pion/rtcp / TestPrint

Function TestPrint

packet_stringifier_test.go:13–509  ·  view source on GitHub ↗

nolint:maintidx

(t *testing.T)

Source from the content-addressed store, hash-verified

11
12//nolint:maintidx
13func TestPrint(t *testing.T) {
14 type Tests struct {
15 packet Packet
16 expected string
17 }
18
19 tests := []Tests{
20 {
21 &ExtendedReport{
22 SenderSSRC: 0x01020304,
23 Reports: []ReportBlock{
24 &LossRLEReportBlock{
25 XRHeader: XRHeader{
26 BlockType: LossRLEReportBlockType,
27 },
28 SSRC: 0x12345689,
29 BeginSeq: 5,
30 EndSeq: 12,
31 Chunks: []Chunk{
32 Chunk(0x4006),
33 Chunk(0x0006),
34 Chunk(0x8765),
35 Chunk(0x0000),
36 },
37 },
38 &DuplicateRLEReportBlock{
39 XRHeader: XRHeader{
40 BlockType: DuplicateRLEReportBlockType,
41 },
42 SSRC: 0x12345689,
43 BeginSeq: 5,
44 EndSeq: 12,
45 Chunks: []Chunk{
46 Chunk(0x4123),
47 Chunk(0x3FFF),
48 Chunk(0xFFFF),
49 Chunk(0x0000),
50 },
51 },
52 &PacketReceiptTimesReportBlock{
53 XRHeader: XRHeader{
54 BlockType: PacketReceiptTimesReportBlockType,
55 },
56 SSRC: 0x98765432,
57 BeginSeq: 15432,
58 EndSeq: 15577,
59 ReceiptTime: []uint32{
60 0x11111111,
61 0x22222222,
62 0x33333333,
63 0x44444444,
64 0x55555555,
65 },
66 },
67 &ReceiverReferenceTimeReportBlock{
68 XRHeader: XRHeader{
69 BlockType: ReceiverReferenceTimeReportBlockType,
70 },

Callers

nothing calls this directly

Calls 3

ChunkTypeAlias · 0.85
stringifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…