- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,244 for Cases (0.04 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/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) -
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/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) -
src/math/logb.go
// license that can be found in the LICENSE file. package math // Logb returns the binary exponent of x. // // Special cases are: // // Logb(±Inf) = +Inf // Logb(0) = -Inf // Logb(NaN) = NaN func Logb(x float64) float64 { // special cases switch { case x == 0: return Inf(-1) case IsInf(x, 0): return Inf(1) case IsNaN(x): return x } return float64(ilogb(x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 19:46:45 UTC 2022 - 1021 bytes - Viewed (0) -
pkg/proxy/util/localdetector_test.go
} func TestDetectLocalByBridgeInterface(t *testing.T) { cases := []struct { ifaceName string expectedJumpIfOutput []string expectedJumpIfNotOutput []string }{ { ifaceName: "eth0", expectedJumpIfOutput: []string{"-i", "eth0"}, expectedJumpIfNotOutput: []string{"!", "-i", "eth0"}, }, } for _, c := range cases { localDetector := NewDetectLocalByBridgeInterface(c.ifaceName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 15:34:37 UTC 2024 - 4.1K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
participle.CaseInsensitive("Timeword"), ) j := JSONPathElement{} cases := []string{ // Key "['name']", ".name", `."name"`, // Index "[2]", "[0]", "[100]", // Object wildcard ".*", // array wildcard "[*]", } for i, tc := range cases { err := p.ParseString(tc, &j) if err != nil { t.Fatalf("%d: %v", i, err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0)