Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for PetOut (0.18 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/source/DefaultStdOutLoggingSystem.java

        }
    
        @Override
        protected PrintStream get() {
            return System.out;
        }
    
        @Override
        protected void set(PrintStream printStream) {
            System.setOut(printStream);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/keepalive/options_test.go

    func TestSetConnectionAgeCommandlineOptions(t *testing.T) {
    	ko := keepalive.DefaultOption()
    	cmd := &cobra.Command{}
    	ko.AttachCobraFlags(cmd)
    
    	buf := new(bytes.Buffer)
    	cmd.SetOut(buf)
    	cmd.SetErr(buf)
    	sec := 1 * time.Second
    	cmd.SetArgs([]string{
    		fmt.Sprintf("--keepaliveMaxServerConnectionAge=%v", sec),
    	})
    
    	if err := cmd.Execute(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 29 15:00:10 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. istioctl/cmd/root_test.go

    	_ = parent.PersistentFlags().String(parentFlag0, "", parentFlag0)
    	_ = parent.PersistentFlags().String(parentFlag1, "", parentFlag1)
    	_ = parent.PersistentFlags().String(parentFlag2, "", parentFlag2)
    	var out bytes.Buffer
    	parent.SetOut(&out)
    	parent.SetErr(&out)
    
    	child := &cobra.Command{
    		Use: "child",
    		Run: func(c *cobra.Command, args []string) {},
    	}
    	_ = parent.PersistentFlags().String(childFlag2, "", childFlag2)
    	parent.AddCommand(child)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 15 17:59:55 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. istioctl/cmd/options_test.go

    `
    
    func TestLogHelp(t *testing.T) {
    	var out bytes.Buffer
    	rootCmd := GetRootCmd([]string{"options"})
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	fErr := rootCmd.Execute()
    	if fErr != nil {
    		t.Fatalf("options failed with %v and %q\n", fErr, out.String())
    	}
    	if !regexp.MustCompile(expectedOutput).Match(out.Bytes()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 14 02:38:54 UTC 2022
    - 1.9K bytes
    - Viewed (0)
Back to top