MCPcopy Create free account
hub / github.com/devfeel/dotweb / Do

Method Do

mock.go:44–49  ·  view source on GitHub ↗

Do do mock logic

(ctx Context)

Source from the content-addressed store, hash-verified

42
43// Do do mock logic
44func (m *StandardMock) Do(ctx Context) {
45 handler, exists := m.routeMap[ctx.RouterNode().Node().fullPath]
46 if exists {
47 handler(ctx)
48 }
49}
50
51// Register register MockHandle on route
52func (m *StandardMock) Register(route string, handler MockHandle) {

Callers

nothing calls this directly

Calls 2

NodeMethod · 0.65
RouterNodeMethod · 0.65

Tested by

no test coverage detected