MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / TestClass

Class TestClass

packages/metadata/src/__tests__/unit/reflect.unit.ts:526–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524 const val1 = {x: 1};
525 const val2 = {y: 'a'};
526 @Reflector.metadata('key1', val1)
527 class TestClass {
528 @Reflector.metadata('key2', val2)
529 testMethod() {}
530 }
531
532 it('adds metadata', () => {
533 let meta = Reflector.getOwnMetadata('key1', TestClass);

Callers

nothing calls this directly

Calls 1

metadataMethod · 0.80

Tested by

no test coverage detected