- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 169 for expectation (0.16 sec)
-
pkg/kubelet/kubeletconfig/util/files/files_test.go
dirs[path] = map[string]string{} } } else if f.mode.IsRegular() { path := filepath.Join(dir, filepath.Dir(f.name)) if _, ok := dirs[path]; !ok { // require an expectation for the parent directory if there is an expectation for the file errs = append(errs, fmt.Errorf("no prior parent directory in c.expects for file %s", f.name)) continue } dirs[path][filepath.Base(f.name)] = f.data } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 07 11:36:13 UTC 2022 - 11.7K bytes - Viewed (0) -
pkg/test/util/assert/assert.go
} t.Fatalf("found diff:%s %v\nLeft: %v\nRight: %v", cs, cmp.Diff(a, b, opts(a)...), a, b) } } // EventuallyEqual compares repeatedly calls the fetch function until the result matches the expectation. func EventuallyEqual[T any](t test.Failer, fetch func() T, expected T, retryOpts ...retry.Option) { t.Helper() var a T // Unit tests typically need shorter default; opts can override though
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 18 17:21:50 UTC 2023 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/equality.go
newManagedFields := accessor.GetManagedFields() if len(oldManagedFields) != len(newManagedFields) { // Return early if any managed fields entry was added/removed. // We want to retain user expectation that even if they write to a field // whose value did not change, they will still result as the field // manager at the end. return newObj, nil } else if len(newManagedFields) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 28 14:56:34 UTC 2022 - 5.3K bytes - Viewed (0) -
cmd/object-api-utils_test.go
if actual != test.result { t.Errorf("Test %d - expected %v but received %v", i+1, test.result, actual) } } } // Tests RemoveStandardStorageClass method. Expectation is metadata map // should be cleared of x-amz-storage-class, if it is set to STANDARD func TestRemoveStandardStorageClass(t *testing.T) { tests := []struct { name string metadata map[string]string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.4K bytes - Viewed (0) -
src/cmd/cover/testdata/test.go
// license that can be found in the LICENSE file. // This program is processed by the cover command, and then testAll is called. // The test driver in main.go can then compare the coverage statistics with expectation. // The word LINE is replaced by the line number in this file. When the file is executed, // the coverage processing has changed the line numbers, so we can't use runtime.Caller. package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
t.Fatalf("unexpected err: %v", err) } } else if err != nil { t.Fatalf("%v", err) } else if expectResult != nil { converted := res.Equal(expectResult).Value().(bool) require.True(t, converted, "expectation not equal to output: %v", cmp.Diff(expectResult.Value(), res.Value())) } else { t.Fatal("expected result must not be nil") } } func TestQuantity(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/GenerateGraphTask.groovy
import org.gradle.util.Path /** * This task writes information about a resolved graph to a file in a flat format (one line per item). * * It exists in order to compare the result of resolution to an expectation; and to ensure that the multiple * ways of accessing artifacts and files from a resolved graph are consistent. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go
t.Fatalf("unexpected err: %v", err) } } else if err != nil { t.Fatalf("%v", err) } else if expectResult != nil { converted := res.Equal(expectResult).Value().(bool) require.True(t, converted, "expectation not equal to output") } else { t.Fatal("expected result must not be nil") } } func TestIP(t *testing.T) { ipv4Addr, _ := netip.ParseAddr("192.168.0.1") int4 := types.Int(4)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:07 UTC 2023 - 8.9K bytes - Viewed (0) -
pkg/volume/csi/csi_block.go
} klog.V(4).Info(log("blockMapper.publishVolumeForBlock created directory for publishPath successfully [%s]", publishDir)) // Request to publish a block volume to publishPath. // Expectation for driver is to place a block volume on the publishPath, by bind-mounting the device file on the publishPath or // creating device file on the publishPath.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cidr_test.go
t.Fatalf("unexpected err: %v", err) } } else if err != nil { t.Fatalf("%v", err) } else if expectResult != nil { converted := res.Equal(expectResult).Value().(bool) require.True(t, converted, "expectation not equal to output") } else { t.Fatal("expected result must not be nil") } } func TestCIDR(t *testing.T) { ipv4CIDR, _ := netip.ParsePrefix("192.168.0.0/24")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:09 UTC 2023 - 8.3K bytes - Viewed (0)