- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for testPrinter (0.15 sec)
-
cmd/kubeadm/app/util/output/output.go
Printf(format string, args ...interface{}) (n int, err error) Println(args ...interface{}) (n int, err error) } // TextPrinter implements Printer interface for generic text output type TextPrinter struct { } // PrintObj is an implementation of ResourcePrinter.PrintObj that prints object func (tp *TextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error { _, err := fmt.Fprintf(writer, "%+v\n", obj) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 08:22:45 UTC 2024 - 8K bytes - Viewed (0) -
operator/pkg/util/progress/progress.go
return prefix + msg } // For testing only var testWriter *io.Writer func createBar() *pb.ProgressBar { // Don't set a total and use Static so we can explicitly control when you write. This is needed // for handling the multiline issues. bar := pb.New(0) bar.Set(pb.Static, true) if testWriter != nil { bar.SetWriter(*testWriter) } bar.Start()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 6.2K bytes - Viewed (0) -
operator/pkg/util/progress/progress_test.go
package progress import ( "bytes" "io" "testing" "istio.io/istio/operator/pkg/name" ) func TestProgressLog(t *testing.T) { buf := bytes.NewBuffer(nil) testBuf := io.Writer(buf) testWriter = &testBuf expected := "" expect := func(e string) { t.Helper() // In buffer mode we don't overwrite old data, so we are constantly appending to the expected newExpected := expected + "\n" + e
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 2.1K bytes - Viewed (0) -
.gitignore
pilot/pkg/kube/config pilot/pkg/proxy/envoy/envoy # lint lintconfig.gen.json .istiorc .istiorc.mk # codegen stuff bin/adapterlinter bin/protoc-gen-gogoslick* bin/protoc-min-version* bin/protoc-gen-docs* bin/testlinter bin/envvarlinter bin/istioctl *.orig # Avoid accidental istio.VERSION changes istio.VERSION LICENSES.txt # Proxy generated proxy config in integration test tests/integration/component/proxy/envoy.conf
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 21:20:01 UTC 2024 - 1.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
assertEquals(ImmutableList.of("foo"), list); assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed()); } public void testCopyToAppendable_doesNotCloseIfWriter() throws IOException { TestWriter writer = new TestWriter(); assertFalse(writer.closed()); source.copyTo(writer); assertFalse(writer.closed()); } public void testClosesOnErrors_copyingToCharSinkThatThrows() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.5K bytes - Viewed (0) -
src/internal/weak/pointer_test.go
"testing" ) type T struct { // N.B. This must contain a pointer, otherwise the weak handle might get placed // in a tiny block making the tests in this package flaky. t *T a int } func TestPointer(t *testing.T) { bt := new(T) wt := weak.Make(bt) if st := wt.Strong(); st != bt { t.Fatalf("weak pointer is not the same as strong pointer: %p vs. %p", st, bt) } // bt is still referenced. runtime.GC()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/certs.go
client, _ := kubeconfigutil.ClientSetFromFile(flags.kubeconfigPath) internalcfg, err := getInternalCfg(flags.cfgPath, client, flags.cfg, &output.TextPrinter{}, "renew") if err != nil { return err } return renewCert(kdir, internalcfg, handler) } }(handler) // install the implementation into the command
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 19.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go
sc clienttest.TestClient[*corev1.Service] ns clienttest.TestWriter[*corev1.Namespace] grc clienttest.TestWriter[*k8sbeta.Gateway] gwcls clienttest.TestWriter[*k8sbeta.GatewayClass] se clienttest.TestWriter[*apiv1alpha3.ServiceEntry] we clienttest.TestWriter[*apiv1alpha3.WorkloadEntry] pa clienttest.TestWriter[*clientsecurityv1beta1.PeerAuthentication]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 01:04:50 UTC 2024 - 70.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/apply.go
klog.V(1).Infoln("[upgrade/apply] retrieving configuration from cluster") client, versionGetter, initCfg, upgradeCfg, err := enforceRequirements(flagSet, flags.applyPlanFlags, args, flags.dryRun, true, &output.TextPrinter{}) if err != nil { return err } // Validate requested and validate actual version klog.V(1).Infoln("[upgrade/apply] validating requested and actual version")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 03:55:23 UTC 2024 - 11.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/plan.go
} // upgradePlanTextPrinter prints upgrade plan in a text form type upgradePlanTextPrinter struct { output.TextPrinter } // PrintObj is an implementation of ResourcePrinter.PrintObj for upgrade plan plain text output func (printer *upgradePlanTextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 03:03:29 UTC 2024 - 14.9K bytes - Viewed (0)