Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for PetOut (0.14 sec)

  1. pkg/version/cobra_test.go

    			remoteCmd,
    			false,
    		},
    	}
    
    	for _, v := range cases {
    		t.Run(v.args, func(t *testing.T) {
    			v.cmd.SetArgs(strings.Split(v.args, " "))
    			var out bytes.Buffer
    			v.cmd.SetOut(&out)
    			v.cmd.SetErr(&out)
    			err := v.cmd.Execute()
    
    			if !v.expectFail && err != nil {
    				t.Errorf("Got %v, expecting success", err)
    			}
    			if v.expectFail && err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-list_test.go

    	kubeClientFunc = func() (kube.CLIClient, error) {
    		return nil, nil
    	}
    	rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{
    		Version: "25",
    	}), args)
    	var out bytes.Buffer
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	err := rootCmd.Execute()
    	if err != nil {
    		t.Fatalf("failed to execute istioctl profile command: %v", err)
    	}
    	output := out.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerDefaultConfigurationTest.groovy

    import org.slf4j.Logger
    import spock.lang.Specification
    
    class OutputEventListenerBackedLoggerDefaultConfigurationTest extends Specification {
    
        @Rule RedirectStdOutAndErr outputs = new RedirectStdOutAndErr()
    
        String getOut() {
            outputs.stdOut
        }
    
        String getErr() {
            outputs.stdErr
        }
    
        def context
    
        Logger logger() {
            if (context == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/decompose.cc

              new_results.push_back(element_op.getOut());
            }
          }
        }
        for (auto res : llvm::zip(op->getResults(), new_results)) {
          auto casted = builder.create<CastOp>(
              op->getLoc(), std::get<0>(res).getType(), std::get<1>(res));
          std::get<0>(res).replaceAllUsesWith(casted.getOut());
        }
    
        // Copy all the unregisted attributes to the new op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/test/cmd/util.go

    func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error {
    	subCmd := getSubCommand(t, subCmds, command)
    	subCmd.SetOut(output)
    	subCmd.SetArgs(args)
    	if err := subCmd.Execute(); err != nil {
    		return err
    	}
    	return nil
    }
    
    func getSubCommand(t *testing.T, subCmds []*cobra.Command, name string) *cobra.Command {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 01 12:47:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig_test.go

    			})), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

        executor = newVirtualThreadPerTaskExecutor()
    
        // Capture non-deterministic but probable sysout warnings of pinned threads
        // https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
        System.setOut(PrintStream(capturedOut))
      }
    
      @AfterEach
      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 11:15:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java

            this.originalSystemOUtStream = originalSystemOut;
            System.setOut(new ThreadBoundPrintStream(this.originalSystemOUtStream));
            printer = new ConsolePrinter(segmentChunks);
            new Thread(printer).start();
            printer.waitUntilRunning(true);
        }
    
        public void close() {
            printer.waitUntilRunning(false);
            System.setOut(this.originalSystemOUtStream);
        }
    
        private void setNext() {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  9. istioctl/pkg/waypoint/waypoint_test.go

    			}
    			expectedOut := string(defaultFile)
    			if len(expectedOut) == 0 {
    				t.Fatal("expected output is empty")
    			}
    
    			var out bytes.Buffer
    			rootCmd := Cmd(ctx)
    			rootCmd.SetArgs(tt.args)
    			rootCmd.SetOut(&out)
    			rootCmd.SetErr(&out)
    
    			fErr := rootCmd.Execute()
    			if fErr != nil {
    				t.Fatal(fErr)
    			}
    			output := out.String()
    			if output != expectedOut {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 15:53:09 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istioctl/kube.go

    		"--kubeconfig",
    		c.kubeconfig,
    	}, args...)
    
    	var out bytes.Buffer
    	var err bytes.Buffer
    
    	start := time.Now()
    
    	invokeMutex.Lock()
    	rootCmd := cmd.GetRootCmd(cmdArgs)
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&err)
    	// istioctl will overwrite logs which we don't want.
    	// It happens to do this via PersistentPreRunE, which we can disable.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top