- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 6,074 for case1 (0.17 sec)
-
pkg/api/v1/resource/helpers_test.go
expectedValue: 1029, }, } as := assert.New(t) for idx, tc := range cases { actual := GetResourceRequest(tc.pod, tc.resourceName) as.Equal(actual, tc.expectedValue, "expected test case [%d] %v: to return %q; got %q instead", idx, tc.cName, tc.expectedValue, actual) } } func TestExtractResourceValue(t *testing.T) { cases := []struct { fs *v1.ResourceFieldSelector pod *v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:13 UTC 2023 - 38.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/dumper.go
// reflection. func (p *dumper) dump(x reflect.Value, n Node) { switch x.Kind() { case reflect.Interface: if x.IsNil() { p.printf("nil") return } p.dump(x.Elem(), nil) case reflect.Ptr: if x.IsNil() { p.printf("nil") return } // special cases for identifiers w/o attached comments (common case) if x, ok := x.Interface().(*Name); ok { p.printf("%s @ %v", x.Value, x.Pos())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 08 17:32:14 UTC 2021 - 4.5K bytes - Viewed (0) -
pkg/util/labels/labels_test.go
}, }, } for _, tc := range cases { got := AddLabel(tc.labels, tc.labelKey, tc.labelValue) if !reflect.DeepEqual(got, tc.want) { t.Errorf("got %v, want %v", got, tc.want) } } } func TestCloneSelectorAndAddLabel(t *testing.T) { labels := map[string]string{ "foo1": "bar1", "foo2": "bar2", "foo3": "bar3", } cases := []struct { labels map[string]string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 17:34:12 UTC 2017 - 4.1K bytes - Viewed (0) -
security/pkg/pki/ra/k8s_ra_test.go
ctx := test.NewContext(t) w, _ := client.Kube().CertificatesV1().CertificateSigningRequests().Watch(ctx, metav1.ListOptions{}) go func() { for { select { case <-ctx.Done(): return case r := <-w.ResultChan(): csr := r.Object.(*cert.CertificateSigningRequest).DeepCopy() if csr.Status.Certificate != nil { continue } csr.Status.Certificate = certificate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 00:44:54 UTC 2023 - 9.7K bytes - Viewed (0) -
docs/en/docs/how-to/separate-openapi-schemas.md
## Do not Separate Schemas Now, there are some cases where you might want to have the **same schema for input and output**. Probably the main use case for this is if you already have some autogenerated client code/SDKs and you don't want to update all the autogenerated client code/SDKs yet, you probably will want to do it at some point, but maybe not right now.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 6.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FluentFuture.java
* <pre>{@code * // Falling back to a zero counter in case an exception happens when processing the RPC to fetch * // counters. * ListenableFuture<Integer> faultTolerantFuture = * fetchCounters().catching(FetchException.class, x -> 0, directExecutor()); * }</pre> * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 11 19:08:44 UTC 2023 - 19.6K bytes - Viewed (0) -
fuzzing/fuzzingserver-config.json
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Mar 26 02:01:32 UTC 2019 - 2.1K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
} b, err := io.ReadAll(f) if err != nil { t.Fatal(err) } p := participle.MustBuild( &JSONPath{}, participle.Lexer(sqlLexer), participle.CaseInsensitive("Keyword"), ) cases := []struct { str string res []interface{} }{ {"s.title", []interface{}{"Murder on the Orient Express", "The Robots of Dawn", "Pigs Have Wings"}},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 2.8K bytes - Viewed (0) -
src/math/big/rat.go
// account that 0 values for x or y must be interpreted as 1) and // returns z. func mulDenom(z, x, y nat) nat { switch { case len(x) == 0 && len(y) == 0: return z.setWord(1) case len(x) == 0: return z.set(y) case len(y) == 0: return z.set(x) } return z.mul(x, y) } // scaleDenom sets z to the product x*f.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
src/math/sqrt.go
// // Special cases are: // // Sqrt(+Inf) = +Inf // Sqrt(±0) = ±0 // Sqrt(x < 0) = NaN // Sqrt(NaN) = NaN func Sqrt(x float64) float64 { return sqrt(x) } // Note: On systems where Sqrt is a single instruction, the compiler // may turn a direct call into a direct use of that instruction instead. func sqrt(x float64) float64 { // special cases switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 15 17:07:57 UTC 2022 - 4.8K bytes - Viewed (0)