@@ -309,34 +309,32 @@ test('R76 catches a symbol added to the classified provider-runtime hub edge', (
309309 assert . match ( found [ 0 ] ! . message , / s e t P r o v i d e r D e v i c e / ) ;
310310} ) ;
311311
312- test ( 'R76 classifies the dynamic interactor lookup instead of skipping it' , ( ) => {
312+ test ( 'R76 classifies a dynamic interactor lookup on a classified pair instead of skipping it' , ( ) => {
313313 const sources = {
314314 'src/platform-runtime.ts' : ROOT_PLATFORM_STUB ,
315- 'src/provider-device-runtime.ts' : PROVIDER_HUB_STUB ,
316315 'src/core/interactors.ts' :
317- "import { getProviderDeviceInteractor, isActiveProviderDevice } from '../provider-device -runtime.ts';\n" +
318- 'void [getProviderDeviceInteractor, isActiveProviderDevice] ;\n' +
319- 'export function getInteractor(device: unknown) {}\n' ,
320- 'src/daemon/snapshot-interactor-capture .ts' :
321- "const { getInteractor } = await import('../core/interactors.ts');\nvoid getInteractor;\n" ,
316+ "import { gateway } from '../platform -runtime.ts';\n" +
317+ 'void gateway ;\n' +
318+ 'export async function getInteractor(device: unknown) {}\n' ,
319+ 'src/daemon/server/daemon-runtime .ts' :
320+ "const { getInteractor } = await import('../../ core/interactors.ts');\nvoid getInteractor;\n" ,
322321 } ;
323- assert . deepEqual ( edgeViolations ( sources , 'src/daemon/snapshot-interactor-capture .ts' ) , [ ] ) ;
322+ assert . deepEqual ( edgeViolations ( sources , 'src/daemon/server/daemon-runtime .ts' ) , [ ] ) ;
324323} ) ;
325324
326- test ( 'R76 catches a binding added to the dynamic interactor lookup' , ( ) => {
325+ test ( 'R76 catches a binding added to a dynamic interactor lookup' , ( ) => {
327326 const sources = {
328327 'src/platform-runtime.ts' : ROOT_PLATFORM_STUB ,
329- 'src/provider-device-runtime.ts' : PROVIDER_HUB_STUB ,
330328 'src/core/interactors.ts' :
331- "import { isActiveProviderDevice } from '../provider-device -runtime.ts';\n" +
332- 'void isActiveProviderDevice ;\n' +
333- 'export function getInteractor(device: unknown) {}\n' +
334- 'export function getRetryInteractor(device: unknown) {}\n' ,
335- 'src/daemon/snapshot-interactor-capture .ts' :
336- "const { getInteractor, getRetryInteractor } = await import('../core/interactors.ts');\n" +
329+ "import { gateway } from '../platform -runtime.ts';\n" +
330+ 'void gateway ;\n' +
331+ 'export async function getInteractor(device: unknown) {}\n' +
332+ 'export async function getRetryInteractor(device: unknown) {}\n' ,
333+ 'src/daemon/server/daemon-runtime .ts' :
334+ "const { getInteractor, getRetryInteractor } = await import('../../ core/interactors.ts');\n" +
337335 'void [getInteractor, getRetryInteractor];\n' ,
338336 } ;
339- const found = edgeViolations ( sources , 'src/daemon/snapshot-interactor-capture .ts' ) ;
337+ const found = edgeViolations ( sources , 'src/daemon/server/daemon-runtime .ts' ) ;
340338 assert . equal ( found . length , 1 ) ;
341339 assert . equal ( found [ 0 ] ! . rule , DAEMON_PLATFORM_RUNTIME_RULE ) ;
342340 assert . match ( found [ 0 ] ! . message , / c l a s s i f i e d s y m b o l s d r i f t e d / ) ;
0 commit comments