- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for expectedBuf (0.04 sec)
-
istioctl/pkg/waypoint/waypoint_test.go
} defaultFile, err := os.ReadFile(fmt.Sprintf("testdata/waypoint/%s", tt.expectedOutFile)) if err != nil { t.Fatal(err) } 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)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Apr 04 15:53:09 UTC 2024 - 4.4K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/secret_test.go
} defer outFile.Close() expectedOut, err := io.ReadAll(outFile) if err != nil { t.Errorf("error reading test data output file: %v", err) } gotOut := &bytes.Buffer{} cw := &ConfigWriter{Stdout: gotOut} err = cw.Prime(configDump) assert.NoError(t, err) err = cw.PrintSecretSummary() assert.NoError(t, err) assert.Equal(t, string(expectedOut), gotOut.String()) }) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 1.7K bytes - Viewed (0) -
cmd/os-readdir_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 7.5K bytes - Viewed (0)