MCPcopy
hub / github.com/gofiber/fiber / Test_CORS_Defaults

Function Test_CORS_Defaults

middleware/cors/cors_test.go:17–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func Test_CORS_Defaults(t *testing.T) {
18 t.Parallel()
19 app := fiber.New()
20 app.Use(New())
21
22 testDefaultOrEmptyConfig(t, app)
23}
24
25func Test_CORS_Empty_Config(t *testing.T) {
26 t.Parallel()

Callers

nothing calls this directly

Calls 4

testDefaultOrEmptyConfigFunction · 0.85
NewFunction · 0.70
NewMethod · 0.65
UseMethod · 0.65

Tested by

no test coverage detected