File: header_test.go

package info (click to toggle)
golang-github-go-openapi-runtime 0.28.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,060 kB
  • sloc: sh: 9; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package header

import (
	"net/http"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestHeader(t *testing.T) {
	hdr := http.Header{
		"x-test": []string{"value"},
	}
	clone := Copy(hdr)
	require.Len(t, clone, len(hdr))
}