MCPcopy Create free account
hub / github.com/anomalyco/opencode / matchesName

Function matchesName

packages/opencode/test/server/httpapi-exercise/routing.ts:78–80  ·  view source on GitHub ↗
(value: string, scenario: Scenario)

Source from the content-addressed store, hash-verified

76}
77
78function matchesName(value: string, scenario: Scenario) {
79 return scenario.name.includes(value) || scenario.path.includes(value) || scenario.method.includes(value.toUpperCase())
80}
81
82function option(args: string[], name: string) {
83 const index = args.indexOf(name)

Callers 1

selectedScenariosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected