Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for one_output (0.24 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/LogEventDispatcherTest.groovy

            when:
            dispatcher.onOutput(event(logLevel))
    
            then:
            1 * stdoutChain.onOutput(_)
            0 * stderrChain.onOutput(_)
    
            where:
            logLevel << LogLevel.values() - LogLevel.ERROR
        }
    
        def "ERROR is dispatched to the stderr chain"() {
            when:
            dispatcher.onOutput(event(LogLevel.ERROR))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/JULRedirectorTest.groovy

            then:
            3 * stdErrListener.onOutput('[SEVERE] Test' + EOL)
            3 * stdErrListener.onOutput('[WARNING] Test' + EOL)
            3 * stdErrListener.onOutput('[INFO] Test' + EOL)
            2 * stdErrListener.onOutput('[CONFIG] Test' + EOL)
            2 * stdErrListener.onOutput('[FINE] Test' + EOL)
            2 * stdErrListener.onOutput('[FINER] Test' + EOL)
            1 * stdErrListener.onOutput('[FINEST] Test' + EOL)
            0 * _
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirectorTest.groovy

            redirector.start()
            System.out.println('this is stdout')
            System.err.println('this is stderr')
            redirector.stop()
    
            then:
            1 * stdOutListener.onOutput('this is stdout' + EOL)
            0 * stdOutListener._
            System.out == outputs.stdOutPrintStream
            System.err == outputs.stdErrPrintStream
        }
    
        def startAndStopRedirectsStdErr() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/test/groovy/org/gradle/process/internal/worker/child/WorkerLogEventListenerTest.groovy

            def logEvent3 = Mock(StyledTextOutputEvent)
            def logEvent4 = Mock(LogEvent)
    
            when:
            listener.onOutput(logEvent1)
            listener.withWorkerLoggingProtocol(protocol2) {
                listener.onOutput(logEvent2)
                listener.onOutput(logEvent3)
            }
            listener.onOutput(logEvent4)
    
            then:
            1 * protocol1.sendOutputEvent(logEvent1)
            1 * protocol2.sendOutputEvent(logEvent2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/LoggingServiceRegistryTest.groovy

            when:
            System.out.println("info")
            System.err.println("error")
    
            then:
            1 * listener.onOutput("info")
            1 * listener.onOutput(SystemProperties.instance.lineSeparator)
    
            then:
            1 * listener.onOutput("error")
            1 * listener.onOutput(SystemProperties.instance.lineSeparator)
            0 * listener._
    
            when:
            loggingManager.stop()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. tensorflow/c/while_loop_test.cc

      Init(1);
      params_->body_outputs[0] = params_->body_inputs[0];
      ExpectError(TF_INVALID_ARGUMENT,
                  "TF_WhileParams `cond_output` field isn't set");
    }
    
    TEST_F(CApiWhileLoopTest, WrongCondOutputType) {
      Init(1);
      params_->cond_output = params_->cond_inputs[0];
      params_->body_outputs[0] = params_->body_inputs[0];
      ExpectError(TF_INVALID_ARGUMENT,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/GroupingProgressLogEventGenerator.java

        private void onUngroupedOutput(RenderableOutputEvent event) {
            if (lastRenderedBuildOpId != null) {
                listener.onOutput(spacerLine(event.getTimestamp(), event.getCategory()));
                lastRenderedBuildOpId = null;
                needHeaderSeparator = true;
            }
            listener.onOutput(event);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 13:28:29 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventRenderer.java

                            @Override
                            public void onOutput(OutputEvent event) {
                                // Do not forward events for rendering when there are no listeners to receive
                                if (event instanceof LogLevelChangeEvent) {
                                    stdOutChain.onOutput(event);
                                    stdErrChain.onOutput(event);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/StreamBackedStandardOutputListenerTest.groovy

            when:
            listener.onOutput("text")
    
            then:
            1 * appendable.append("text")
            0 * _._
        }
    
        def canAppendToAWriter() {
            Writer writer = Mock()
            def listener = new StreamBackedStandardOutputListener(writer)
    
            when:
            listener.onOutput("text")
    
            then:
            1 * writer.append("text")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/source/PrintStreamLoggingSystemTest.groovy

            when:
            loggingSystem.setLevel(LogLevel.INFO)
            loggingSystem.startCapture()
            stream.println('info')
    
            then:
            1 * listener.onOutput({ it instanceof LogLevelChangeEvent && it.newLogLevel == LogLevel.INFO })
            1 * listener.onOutput({ it instanceof StyledTextOutputEvent && it.spans[0].text == withEOL('info') })
            original.toString() == ''
            0 * listener._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top