MCPcopy Create free account
hub / github.com/ankorstore/yokai / TestMiddlewareDefinition

Function TestMiddlewareDefinition

fxhttpserver/define_test.go:13–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestMiddlewareDefinition(t *testing.T) {
14 t.Parallel()
15
16 kind := fxhttpserver.GlobalUse
17
18 md := fxhttpserver.NewMiddlewareDefinition(middleware.NewTestGlobalMiddleware, kind)
19
20 assert.False(t, md.Concrete())
21 assert.Equal(t, kind, md.Kind())
22}
23
24func TestHandlerDefinition(t *testing.T) {
25 t.Parallel()

Callers

nothing calls this directly

Calls 2

ConcreteMethod · 0.95
KindMethod · 0.95

Tested by

no test coverage detected