added cli-covarage tool and fixed more tests
This commit is contained in:
parent
b63e58784c
commit
b845a8eade
57 changed files with 11917 additions and 295 deletions
|
|
@ -118,6 +118,19 @@ export class HandlerRegistry {
|
|||
return this.handlerServices.get(handlerName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all handlers for a specific service
|
||||
*/
|
||||
getServiceHandlers(serviceName: string): HandlerMetadata[] {
|
||||
const handlers: HandlerMetadata[] = [];
|
||||
for (const [handlerName, metadata] of this.handlers) {
|
||||
if (this.handlerServices.get(handlerName) === serviceName || metadata.service === serviceName) {
|
||||
handlers.push(metadata);
|
||||
}
|
||||
}
|
||||
return handlers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scheduled jobs for a handler
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue