public void instrumentForCoverage ( ) { checkState ( moduleGraph != null , "No inputs. Did you call init() or initModules()?" ) ; checkState ( ! hasErrors ( ) ) ; runInCompilerThread ( ( ) -> { checkState ( options . getInstrumentForCoverageOnly ( ) ) ; checkState ( ! hasErrors ( ) ) ; instrumentForCoverageInternal ( options . instrumentBranchCoverage ) ; return null ; } ) ; }
Instrument code for coverage .