MCPcopy Create free account
hub / github.com/middleapi/orpc / middleware.test.ts

File middleware.test.ts

packages/ratelimit/src/middleware.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { RatelimiterMiddlewareContext } from './middleware'
2import type { Ratelimiter, RatelimiterLimitResult } from './types'
3import { call, os, type } from '@orpc/server'
4import { describe, expect, it, vi } from 'vitest'

Callers

nothing calls this directly

Calls 7

callFunction · 0.90
createLimiterFunction · 0.85
typeFunction · 0.85
handlerMethod · 0.80
useMethod · 0.65
inputMethod · 0.65

Tested by

no test coverage detected