MCPcopy
hub / github.com/gofiber/fiber / Test_JoinHeaderValues

Function Test_JoinHeaderValues

helpers_test.go:1543–1548  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1541}
1542
1543func Test_JoinHeaderValues(t *testing.T) {
1544 t.Parallel()
1545 require.Nil(t, joinHeaderValues(nil))
1546 require.Equal(t, []byte("a"), joinHeaderValues([][]byte{[]byte("a")}))
1547 require.Equal(t, []byte("a,b"), joinHeaderValues([][]byte{[]byte("a"), []byte("b")}))
1548}
1549
1550func Test_ParamsMatch_InvalidEscape(t *testing.T) {
1551 t.Parallel()

Callers

nothing calls this directly

Calls 1

joinHeaderValuesFunction · 0.85

Tested by

no test coverage detected