src/com/google/javascript/jscomp/AbstractCommandLineRunner.java
/**
   * Put the command line runner into test mode. In test mode, all outputs will be blackholed.
   *
   * @param externsSupplier A provider for externs.
   * @param inputsSupplier A provider for source inputs.
   * @param modulesSupplier A provider for modules. Only one of inputsSupplier and modulesSupplier
   *     may be non-null.
   * @param exitCodeReceiver A receiver for the status code that would have been passed to
   *     System.exit in non-test mode.
   */
Put the command line runner into test mode. In test mode, all outputs will be blackholed.
@param externsSupplier A provider for externs.
@param inputsSupplier A provider for source inputs.
@param modulesSupplier A provider for modules. Only one of inputsSupplier and modulesSupplier
may be non-null.
@param exitCodeReceiver A receiver for the status code that would have been passed to
System.exit in non-test mode.
Put the command line runner into test mode . In test mode all outputs will be blackholed . @param externsSupplier A provider for externs . @param inputsSupplier A provider for source inputs . @param modulesSupplier A provider for modules . Only one of inputsSupplier and modulesSupplier may be non - null . @param exitCodeReceiver A receiver for the status code that would have been passed to System . exit in non - test mode .
@VisibleForTesting
  @GwtIncompatible("Unnecessary")
  void enableTestMode(
      Supplier<List<SourceFile>> externsSupplier,
      Supplier<List<SourceFile>> inputsSupplier,
      Supplier<List<JSModule>> modulesSupplier,
      Function<Integer, Void> exitCodeReceiver) {
    checkArgument(inputsSupplier == null ^ modulesSupplier == null);
    testMode = true;
    this.externsSupplierForTesting = externsSupplier;
    this.inputsSupplierForTesting = inputsSupplier;
    this.modulesSupplierForTesting = modulesSupplier;
    this.exitCodeReceiver = exitCodeReceiver;
  }
@ VisibleForTesting @ GwtIncompatible ( "Unnecessary" ) void enableTestMode ( Supplier < List < SourceFile > > externsSupplier , Supplier < List < SourceFile > > inputsSupplier , Supplier < List < JSModule > > modulesSupplier , Function < Integer , Void > exitCodeReceiver ) { checkArgument ( inputsSupplier == null ^ modulesSupplier == null ) ; testMode = true ; this . externsSupplierForTesting = externsSupplier ; this . inputsSupplierForTesting = inputsSupplier ; this . modulesSupplierForTesting = modulesSupplier ; this . exitCodeReceiver = exitCodeReceiver ; }
Put the command line runner into test mode.
Put the command line runner into test mode .