(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…