path_testcases_test.go — fiber Source File
Architecture documentation for path_testcases_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 34200c76_52e1_3c03_c6c1_99f6fe1dce83["path_testcases_test.go"] 4809913a_4bc9_08d2_f6bd_d40ce1eb7266["strings"] 34200c76_52e1_3c03_c6c1_99f6fe1dce83 --> 4809913a_4bc9_08d2_f6bd_d40ce1eb7266 style 34200c76_52e1_3c03_c6c1_99f6fe1dce83 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️
// 📝 GitHub Repository: https://github.com/gofiber/fiber
// 📌 API Documentation: https://docs.gofiber.io
package fiber
import (
"strings"
)
type routeTestCase struct {
url string
params []string
match bool
partialCheck bool
}
type routeCaseCollection struct {
pattern string
testCases []routeTestCase
}
var (
benchmarkCases []routeCaseCollection
routeTestCases []routeCaseCollection
)
func init() {
// smaller list for benchmark cases
benchmarkCases = []routeCaseCollection{
{
pattern: "/api/v1/const",
testCases: []routeTestCase{
{url: "/api/v1/const", params: []string{}, match: true},
{url: "/api/v1", params: nil, match: false},
{url: "/api/v1/", params: nil, match: false},
{url: "/api/v1/something", params: nil, match: false},
},
},
{
pattern: "/api/:param/fixedEnd",
testCases: []routeTestCase{
{url: "/api/abc/fixedEnd", params: []string{"abc"}, match: true},
{url: "/api/abc/def/fixedEnd", params: nil, match: false},
},
},
{
pattern: "/api/v1/:param/*",
testCases: []routeTestCase{
{url: "/api/v1/entity", params: []string{"entity", ""}, match: true},
{url: "/api/v1/entity/", params: []string{"entity", ""}, match: true},
{url: "/api/v1/entity/1", params: []string{"entity", "1"}, match: true},
{url: "/api/v", params: nil, match: false},
{url: "/api/v2", params: nil, match: false},
{url: "/api/v1/", params: nil, match: false},
},
},
}
// combine benchmark cases and other cases
// ... (703 more lines)
Domain
Subdomains
Functions
Classes
Dependencies
- strings
Source
Frequently Asked Questions
What does path_testcases_test.go do?
path_testcases_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Routing subdomain.
What functions are defined in path_testcases_test.go?
path_testcases_test.go defines 1 function(s): init.
What does path_testcases_test.go depend on?
path_testcases_test.go imports 1 module(s): strings.
Where is path_testcases_test.go in the architecture?
path_testcases_test.go is located at path_testcases_test.go (domain: FiberCore, subdomain: Routing).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free