- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for errCount (0.14 sec)
-
pkg/apis/policy/validation/validation_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 9.1K bytes - Viewed (0) -
src/go/printer/printer_test.go
lw := &limitWriter{remaining: i} err := (&Config{Mode: RawFormat}).Fprint(lw, fset, file) if lw.errCount > 1 { t.Fatal("Writes continued after first error returned") } // We expect errCount be 1 iff err is set if (lw.errCount != 0) != (err != nil) { t.Fatal("Expected err when errCount != 0") } } } // TestX is a skeleton test that can be filled in for debugging one-off cases.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
cmd/admin-handlers.go
// Get heal status from other peers peersHealStates, nerrs := globalNotificationSys.BackgroundHealStatus(ctx) var errCount int for _, nerr := range nerrs { if nerr.Err != nil { adminLogIf(ctx, nerr.Err) errCount++ } } if errCount == len(nerrs) { return madmin.BgHealState{}, fmt.Errorf("all remote servers failed to report heal status, cluster is unhealthy") }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 98K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
for _, compiler := range []string{"gc", "gccgo", "source"} { errcount := 0 conf := Config{ Error: func(err error) { // we should only see the import error if errcount > 0 || !strings.Contains(err.Error(), "could not import") { t.Errorf("for %s importer, got unexpected error: %v", compiler, err) } errcount++ }, //Importer: importer.For(compiler, nil), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
for _, compiler := range []string{"gc", "gccgo", "source"} { errcount := 0 conf := Config{ Error: func(err error) { // we should only see the import error if errcount > 0 || !strings.Contains(err.Error(), "could not import") { t.Errorf("for %s importer, got unexpected error: %v", compiler, err) } errcount++ }, Importer: importer.For(compiler, nil), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
cmd/site-replication-metrics.go
n.LastHour = n.LastHour.merge(o.LastHour) n.ErrCounts = make(map[string]int) for k, v := range rt.ErrCounts { n.ErrCounts[k] = v } for k, v := range o.ErrCounts { n.ErrCounts[k] += v } return n } // SRStats has replication stats at site level type SRStats struct { // Total Replica size in bytes ReplicaSize int64 `json:"replicaSize"` // Total Replica received
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/io_options.go
// DEPRECATED: use genericiooptions.NewTestIOStreams func NewTestIOStreams() (genericiooptions.IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) { in := &bytes.Buffer{} out := &bytes.Buffer{} errOut := &bytes.Buffer{} return IOStreams{ In: in, Out: out, ErrOut: errOut, }, in, out, errOut }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 1.6K bytes - Viewed (0) -
operator/pkg/controlplane/control_plane.go
func (i *IstioControlPlane) RenderManifest() (manifests name.ManifestMap, errsOut util.Errors) { if !i.started { return nil, util.NewErrs(fmt.Errorf("istioControlPlane must be Run before calling RenderManifest")) } manifests = make(name.ManifestMap) for _, c := range i.components { ms, err := c.RenderManifest() errsOut = util.AppendErr(errsOut, err) manifests[c.ComponentName()] = append(manifests[c.ComponentName()], ms)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 23 02:26:59 UTC 2022 - 4K bytes - Viewed (0) -
cmd/site-replication-metrics_gen.go
return } case "ErrCounts": var zb0003 uint32 zb0003, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err, "ErrCounts") return } if z.ErrCounts == nil { z.ErrCounts = make(map[string]int, zb0003) } else if len(z.ErrCounts) > 0 { for key := range z.ErrCounts { delete(z.ErrCounts, key) } } for zb0003 > 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 40.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericiooptions/io_options.go
Out io.Writer // ErrOut think, os.Stderr ErrOut io.Writer } // NewTestIOStreams returns a valid IOStreams and in, out, errout buffers for unit tests func NewTestIOStreams() (IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) { in := &bytes.Buffer{} out := &bytes.Buffer{} errOut := &bytes.Buffer{} return IOStreams{ In: in, Out: out, ErrOut: errOut, }, in, out, errOut }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 14:05:23 UTC 2023 - 1.5K bytes - Viewed (0)