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

Function TestPriorityParamIsZero

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

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestPriorityParamIsZero(t *testing.T) {
6 var p PriorityParam
7 if !p.IsZero() {
8 t.Fatal("zero PriorityParam should be zero")
9 }
10 p = PriorityParam{StreamDep: 1}
11 if p.IsZero() {
12 t.Fatal("PriorityParam with StreamDep=1 should not be zero")
13 }
14}
15
16func TestSettingIDString(t *testing.T) {
17 tests := []struct {

Callers

nothing calls this directly

Calls 1

IsZeroMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…