MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createLogMethod

Function createLogMethod

common/src/testing/mocks/logger.ts:42–48  ·  view source on GitHub ↗
(level: LogLevel)

Source from the content-addressed store, hash-verified

40 const { customImplementations = {} } = options
41
42 const createLogMethod = (level: LogLevel): MockLogMethod => {
43 const customImpl = customImplementations[level]
44 if (customImpl) {
45 return mock(customImpl)
46 }
47 return mock(() => {})
48 }
49
50 const mockLogger: MockLogger = {
51 trace: createLogMethod('trace'),

Callers 1

createMockLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected