MCPcopy Create free account
hub / github.com/imroc/req / TestPriorityFrame

Function TestPriorityFrame

http2/http2_test.go:45–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestPriorityFrame(t *testing.T) {
46 pf := PriorityFrame{
47 StreamID: 1,
48 PriorityParam: PriorityParam{
49 StreamDep: 0,
50 Exclusive: false,
51 Weight: 16,
52 },
53 }
54 if pf.StreamID != 1 {
55 t.Fatalf("StreamID = %d, want 1", pf.StreamID)
56 }
57 if pf.PriorityParam.Weight != 16 {
58 t.Fatalf("Weight = %d, want 16", pf.PriorityParam.Weight)
59 }
60 if pf.PriorityParam.IsZero() {
61 t.Fatal("PriorityParam should not be zero with Weight=16")
62 }
63}

Callers

nothing calls this directly

Calls 1

IsZeroMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…