1'use strict'; 2 3const common = require('../common'); 4const initHooks = require('./init-hooks'); 5const verifyGraph = require('./verify-graph'); 6const fs = require('fs'); 7 8const hooks = initHooks(); 9 10hooks.enable(); 11fs.readFile(__filename, common.mustCall(onread)); 12 13function onread() {} 14 15process.on('exit', onexit); 16 17function onexit() { 18 hooks.disable(); 19 verifyGraph( 20 hooks, 21 [ { type: 'FSREQCALLBACK', id: 'fsreq:1', triggerAsyncId: null }, 22 { type: 'FSREQCALLBACK', id: 'fsreq:2', triggerAsyncId: 'fsreq:1' }, 23 { type: 'FSREQCALLBACK', id: 'fsreq:3', triggerAsyncId: 'fsreq:2' }, 24 { type: 'FSREQCALLBACK', id: 'fsreq:4', triggerAsyncId: 'fsreq:3' } ], 25 ); 26} 27