From 4e35c509a41cecb207bf6f52e7c9a529fa9f71fb Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 8 Mar 2024 02:19:18 +0700 Subject: lib/http: rename files for consistency If the type is in CamelCase the file should be using snake_case. --- lib/http/requestmethod_test.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 lib/http/requestmethod_test.go (limited to 'lib/http/requestmethod_test.go') diff --git a/lib/http/requestmethod_test.go b/lib/http/requestmethod_test.go deleted file mode 100644 index 3723c6c4..00000000 --- a/lib/http/requestmethod_test.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2021, Shulhan . 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 TestRequestMethod_String(t *testing.T) { - cases := []struct { - exp string - m RequestMethod - }{ - {m: 0, exp: "GET"}, - {m: 1, exp: "CONNECT"}, - {m: 2, exp: "DELETE"}, - {m: 3, exp: "HEAD"}, - {m: 4, exp: "OPTIONS"}, - {m: 5, exp: "PATCH"}, - {m: 6, exp: "POST"}, - {m: 7, exp: "PUT"}, - {m: 8, exp: "TRACE"}, - {m: 9, exp: ""}, - {m: RequestMethodGet, exp: "GET"}, - {m: RequestMethodConnect, exp: "CONNECT"}, - {m: RequestMethodDelete, exp: "DELETE"}, - {m: RequestMethodHead, exp: "HEAD"}, - {m: RequestMethodOptions, exp: "OPTIONS"}, - {m: RequestMethodPatch, exp: "PATCH"}, - {m: RequestMethodPost, exp: "POST"}, - {m: RequestMethodPut, exp: "PUT"}, - {m: RequestMethodTrace, exp: "TRACE"}, - } - - for _, c := range cases { - test.Assert(t, "RequestMethod.String", c.exp, c.m.String()) - } -} -- cgit v1.3-5-g9baa