File: utils_test.go

package info (click to toggle)
golang-github-koofr-go-httpclient 0.0~git20190818.e0dc8fd-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 160 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package httpclient_test

import (
	. "github.com/koofr/go-httpclient"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("EscapePath", func() {
	It("should escape path", func() {
		Expect(EscapePath("foo+bar baz?&")).To(Equal("foo%2bbar%20baz%3F&"))
	})
})