(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func 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 | |
| 16 | func TestInflowTake(t *testing.T) { |
| 17 | var f inflow |
nothing calls this directly
no test coverage detected
searching dependent graphs…