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

Function TestInflowInit

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

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestInflowInit(t *testing.T) {
6 var f inflow
7 f.init(65535)
8 if f.avail != 65535 {
9 t.Fatalf("avail = %d, want 65535", f.avail)
10 }
11 if f.unsent != 0 {
12 t.Fatalf("unsent = %d, want 0", f.unsent)
13 }
14}
15
16func TestInflowTake(t *testing.T) {
17 var f inflow

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…