- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,786 for Cases (0.1 sec)
-
src/cmd/vendor/golang.org/x/text/cases/cases.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run gen.go gen_trieval.go // Package cases provides general and language-specific case mappers. package cases // import "golang.org/x/text/cases" import ( "golang.org/x/text/language" "golang.org/x/text/transform" ) // References: // - Unicode Reference Manual Chapter 3.13, 4.2, and 5.18.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go
} } } func TestVerbsJsonIterUnmarshalJSON(t *testing.T) { cases := []struct { input string result APIResource }{ {`{}`, APIResource{}}, {`{"verbs":null}`, APIResource{}}, {`{"verbs":[]}`, APIResource{Verbs: Verbs([]string{})}}, {`{"verbs":["delete"]}`, APIResource{Verbs: Verbs([]string{"delete"})}}, } for i, c := range cases { var result APIResource
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
T Time `json:"t"` } func TestTimeMarshalYAML(t *testing.T) { cases := []struct { input Time result string }{ {Time{}, "t: null\n"}, {Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"}, {Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"}, } for _, c := range cases { input := TimeHolder{c.input} result, err := yaml.Marshal(&input)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go
} func TestMicroTimeMarshalYAML(t *testing.T) { cases := []struct { input MicroTime result string }{ {MicroTime{}, "t: null\n"}, {DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, } for _, c := range cases { input := MicroTimeHolder{c.input}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 11.1K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/validation_test.go
}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { err := ValidateOwnerGroups(tc.include, tc.exclude) assert.NoError(t, err) }) } } func TestValidateOwnerGroups_Invalid(t *testing.T) { cases := []struct { name string include string exclude string }{ { name: "capture 65 groups",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 11 02:38:28 UTC 2024 - 3K bytes - Viewed (0) -
src/math/dim.go
// license that can be found in the LICENSE file. package math // Dim returns the maximum of x-y or 0. // // Special cases are: // // Dim(+Inf, +Inf) = NaN // Dim(-Inf, -Inf) = NaN // Dim(x, NaN) = Dim(NaN, x) = NaN func Dim(x, y float64) float64 { // The special cases result in NaN after the subtraction: // +Inf - +Inf = NaN // -Inf - -Inf = NaN // NaN - y = NaN // x - NaN = NaN
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 15 19:45:12 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/config/validation/agent/extensionprovider_test.go
valid: false, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { err := validateExtensionProviderTracingZipkin(c.config) valid := err == nil if valid != c.valid { t.Errorf("Expected valid=%v, got valid=%v for %v", c.valid, valid, c.config) } }) } } func TestValidateExtensionProviderTracingLightstep(t *testing.T) { cases := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/config/labels/instance_test.go
expected: result{false, false}, }, } for _, c := range cases { var got result got.subsetOf = c.left.SubsetOf(c.right) got.selected = c.left.Match(c.right) if got != c.expected { t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected) } } } func TestString(t *testing.T) { cases := []struct { input labels.Instance expected string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 06:54:36 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td
// A string attribute whose value are one of the values in `cases`. // Referred TF_AnyStrAttrOf in tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td class TFL_AnyStrAttrOf<list<string> cases> : StringBasedAttr< CPred<!foldl( "$_self.cast<StringAttr>().getValue() == \"" # !head(cases) # "\"", !foreach(case, !tail(cases), "$_self.cast<StringAttr>().getValue() == \"" # case # "\""),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 20 00:05:24 UTC 2022 - 6.4K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
want := map[string]any{ "level": cases[i].level, "msg": cases[i].msg, } if k := cases[i].key; k != nil { want["key"] = *k } assert.Equal(t, want, parsedLog) i++ } } func TestParseCniLog(t *testing.T) { wantT := &time.Time{} assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z"))) cases := []struct { name string in string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0)