- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 123 for volerr (0.21 sec)
-
internal/amztime/parse_test.go
}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.timeStr, func(t *testing.T) { gott, goterr := Parse(testCase.timeStr) if !errors.Is(goterr, testCase.expectedErr) { t.Errorf("expected %v, got %v", testCase.expectedErr, goterr) } if !gott.Equal(testCase.expectedTime) { t.Errorf("expected %v, got %v", testCase.expectedTime, gott) } }) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 07 14:24:54 UTC 2022 - 1.6K bytes - Viewed (0) -
src/strconv/quote_test.go
// Test Unquote. got, gotErr := Unquote(in) if got != want || gotErr != wantErr { t.Errorf("Unquote(%q) = (%q, %v), want (%q, %v)", in, got, gotErr, want, wantErr) } // Test QuotedPrefix. // Adding an arbitrary suffix should not change the result of QuotedPrefix // assume that the suffix doesn't accidentally terminate a truncated input. if gotErr == nil { want = in }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 9.6K bytes - Viewed (0) -
src/net/http/transfer_test.go
} for i, tt := range tests { tr := &transferReader{ Header: tt.hdr, ProtoMajor: 1, ProtoMinor: 1, } gotErr := tr.parseTransferEncoding() if !reflect.DeepEqual(gotErr, tt.wantErr) { t.Errorf("%d.\ngot error:\n%v\nwant error:\n%v\n\n", i, gotErr, tt.wantErr) } } } // issue 39017 - disallow Content-Length values such as "+3" func TestParseContentLength(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:16:28 UTC 2023 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/validation_test.go
allErrs, err, _ := validate(ctx, field.NewPath("test"), ss, ss, f, false, false, 10) if err != nil { t.Errorf("unexpected error: %v", err) } for _, valErr := range allErrs { t.Errorf("unexpected error: %v", valErr) } // cost budget exceeded for the first validation rule allErrs, err, _ = validate(ctx, field.NewPath("test"), ss, ss, f, false, false, 0) meet := 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats_test.go
// Wait until we get a non-zero node metrics. if pollErr := wait.Poll(100*time.Millisecond, 5*perfCounterUpdatePeriod, func() (bool, error) { metrics, _ := counterClient.(*StatsClient).client.getNodeMetrics() if metrics.memoryPrivWorkingSetBytes != 0 { return true, nil } return false, nil }); pollErr != nil { t.Fatalf("Encountered error: `%v'", pollErr) } } func TestGetMachineInfo(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 5.7K bytes - Viewed (0) -
src/sync/atomic/value_test.go
} } func TestValuePanic(t *testing.T) { const nilErr = "sync/atomic: store of nil value into Value" const badErr = "sync/atomic: store of inconsistently typed value into Value" var v Value func() { defer func() { err := recover() if err != nilErr { t.Fatalf("inconsistent store panic: got '%v', want '%v'", err, nilErr) } }() v.Store(nil) }() v.Store(42) func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
pkg/volume/csi/csi_util.go
} // GetCSIDriverName returns the csi driver name func GetCSIDriverName(spec *volume.Spec) (string, error) { volSrc, pvSrc, err := getSourceFromSpec(spec) if err != nil { return "", err } switch { case volSrc != nil: return volSrc.Driver, nil case pvSrc != nil: return pvSrc.Driver, nil default: return "", errors.New(log("volume source not found in volume.Spec"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 28 17:14:00 UTC 2023 - 7.3K bytes - Viewed (0) -
operator/pkg/translate/translate_value_test.go
t.Fatalf("unmarshal(%s): got error %s", tt.desc, err) } gotSpec, err := tr.TranslateFromValueToSpec([]byte(tt.valueYAML), false) if gotErr, wantErr := errToString(err), tt.wantErr; gotErr != wantErr { t.Errorf("ValuesToProto(%s)(%v): gotErr:%s, wantErr:%s", tt.desc, tt.valueYAML, gotErr, wantErr) } if tt.wantErr == "" { byteArray, err := protomarshal.Marshal(gotSpec) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 06 02:56:54 UTC 2023 - 20.1K bytes - Viewed (0) -
src/io/io_test.go
for _, whence := range []int{-3, -2, -1, 3, 4, 5} { var offset int64 = 0 gotOff, gotErr := w.Seek(offset, whence) if gotOff != 0 || gotErr != ErrWhence { t.Errorf("For whence %d, offset %d, OffsetWriter.Seek got: (%d, %v), want: (%d, %v)", whence, offset, gotOff, gotErr, 0, ErrWhence) } } }) // Should throw error errOffset if offset is negative
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0) -
internal/lock/lock_test.go
} // blocking on locked file locked := make(chan struct{}, 1) go func() { bl, blerr := LockedOpenFile(f.Name(), os.O_WRONLY, 0o600) if blerr != nil { t.Error(blerr) return } locked <- struct{}{} if blerr = bl.Close(); blerr != nil { t.Error(blerr) return } }() select { case <-locked: t.Error("unexpected unblocking")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.6K bytes - Viewed (0)