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

Function TestFlagsHas

internal/http2/frame_test.go:34–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestFlagsHas(t *testing.T) {
35 flags := FlagDataEndStream | FlagDataPadded
36 if !flags.Has(FlagDataEndStream) {
37 t.Fatal("should have FlagDataEndStream")
38 }
39 if !flags.Has(FlagDataPadded) {
40 t.Fatal("should have FlagDataPadded")
41 }
42 if flags.Has(FlagHeadersEndHeaders) {
43 t.Fatal("should not have FlagHeadersEndHeaders")
44 }
45}
46
47func TestFrameHeaderString(t *testing.T) {
48 fh := FrameHeader{

Callers

nothing calls this directly

Calls 1

HasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…