aboutsummaryrefslogtreecommitdiff
path: root/uri_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-10 15:34:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-10 21:34:49 +0800
commitf84e2346ba6209d0527234bd38d736d2bf5052c0 (patch)
tree089fe472a2980d3e7274f581c0c29979a2c3c8de /uri_test.go
parentAdd missing fasthttp prefix in example usage (#1487) (diff)
downloadfasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.gz
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.bz2
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.zip
Rename unexported funcs, vars to match common Go (#1488)
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms and https://go.dev/doc/effective_go#mixed-caps
Diffstat (limited to 'uri_test.go')
-rw-r--r--uri_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/uri_test.go b/uri_test.go
index 4de78f3..72fff30 100644
--- a/uri_test.go
+++ b/uri_test.go
@@ -326,23 +326,23 @@ func testURIParseScheme(t *testing.T, uri, expectedScheme, expectedHost, expecte
func TestIsHttp(t *testing.T) {
var u URI
- if !u.isHttp() || u.isHttps() {
+ if !u.isHTTP() || u.isHTTPS() {
t.Fatalf("http scheme is assumed by default and not https")
}
u.SetSchemeBytes([]byte{})
- if !u.isHttp() || u.isHttps() {
+ if !u.isHTTP() || u.isHTTPS() {
t.Fatalf("empty scheme must be threaten as http and not https")
}
u.SetScheme("http")
- if !u.isHttp() || u.isHttps() {
+ if !u.isHTTP() || u.isHTTPS() {
t.Fatalf("scheme must be threaten as http and not https")
}
u.SetScheme("https")
- if !u.isHttps() || u.isHttp() {
+ if !u.isHTTPS() || u.isHTTP() {
t.Fatalf("scheme must be threaten as https and not http")
}
u.SetScheme("dav")
- if u.isHttps() || u.isHttp() {
+ if u.isHTTPS() || u.isHTTP() {
t.Fatalf("scheme must be threaten as not http and not https")
}
}