- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for expectAction (0.3 sec)
-
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) -
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) -
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) -
src/internal/coverage/encodecounter/encode.go
r.stab.Lookup("") return r } // CounterVisitor describes a helper object used during counter file // writing; when writing counter data files, clients pass a // CounterVisitor to the write/emit routines, then the expectation is // that the VisitFuncs method will then invoke the callback "f" with // data for each function to emit to the file. type CounterVisitor interface { VisitFuncs(f CounterVisitorFn) error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0) -
src/net/http/sniff_test.go
// DetectContentType is defined to return // text/plain; charset=utf-8 for an empty body, // but as of Go 1.10 the HTTP server has been changed // to return no content-type at all for an empty body. // Adjust the expectation here. wantContentType := tt.contentType if len(tt.data) == 0 { wantContentType = "" } if ct := resp.Header.Get("Content-Type"); ct != wantContentType {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 07 16:53:14 UTC 2022 - 9.6K bytes - Viewed (0)