File: header_field_test.go

package info (click to toggle)
golang-github-marten-seemann-qpack 0.2.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 192 kB
  • sloc: sh: 63; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package qpack

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("Header Field", func() {
	It("says if it is pseudo", func() {
		Expect((HeaderField{Name: ":status"}).IsPseudo()).To(BeTrue())
		Expect((HeaderField{Name: ":authority"}).IsPseudo()).To(BeTrue())
		Expect((HeaderField{Name: ":foobar"}).IsPseudo()).To(BeTrue())
		Expect((HeaderField{Name: "status"}).IsPseudo()).To(BeFalse())
		Expect((HeaderField{Name: "foobar"}).IsPseudo()).To(BeFalse())
	})
})