- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,969 for Cases (0.06 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_amd64.s
#define NegInf 0xFFF0000000000000 // func ·archMax(x, y float64) float64 TEXT ·archMax(SB),NOSPLIT,$0 // +Inf special cases MOVQ $PosInf, AX MOVQ x+0(FP), R8 CMPQ AX, R8 JEQ isPosInf MOVQ y+8(FP), R9 CMPQ AX, R9 JEQ isPosInf // NaN special cases MOVQ $~(1<<63), DX // bit mask MOVQ $PosInf, AX MOVQ R8, BX ANDQ DX, BX // x = |x| CMPQ AX, BX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 15:48:19 UTC 2021 - 1.9K 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) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go
D Duration `json:"d"` } func TestDurationMarshalYAML(t *testing.T) { cases := []struct { input Duration result string }{ {Duration{5 * time.Second}, "d: 5s\n"}, {Duration{2 * time.Minute}, "d: 2m0s\n"}, {Duration{time.Hour + 3*time.Millisecond}, "d: 1h0m0.003s\n"}, } for _, c := range cases { input := DurationHolder{c.input} result, err := yaml.Marshal(&input) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 07 18:17:32 UTC 2018 - 4.1K 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/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)