thread-master/internal/model/permission/usecase/usecase_test.go

14 lines
282 B
Go
Raw Normal View History

2026-06-26 08:37:04 +00:00
package usecase
import "testing"
func TestMergeHTTPMethods(t *testing.T) {
got := mergeHTTPMethods("GET", "PATCH")
if got != "GET|PATCH" {
t.Fatalf("got %q", got)
}
got = mergeHTTPMethods("GET|POST", "POST|PATCH")
if got != "GET|POST|PATCH" {
t.Fatalf("got %q", got)
}
}