aboutsummaryrefslogtreecommitdiff
path: root/lib/http/requesttype_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/requesttype_test.go')
-rw-r--r--lib/http/requesttype_test.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/http/requesttype_test.go b/lib/http/requesttype_test.go
deleted file mode 100644
index a593ff5f..00000000
--- a/lib/http/requesttype_test.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package http
-
-import (
- "testing"
-
- "git.sr.ht/~shulhan/pakakeh.go/lib/test"
-)
-
-func TestRequestType_String(t *testing.T) {
- cases := []struct {
- exp string
- rt RequestType
- }{
- {rt: 0, exp: ""},
- {rt: 1, exp: ""},
- {rt: 2, exp: ContentTypeForm},
- {rt: 3, exp: ContentTypeMultipartForm},
- {rt: 4, exp: ContentTypeJSON},
- }
-
- for _, c := range cases {
- test.Assert(t, "RequestMethod.String", c.exp, c.rt.String())
- }
-}