- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,969 for Cases (0.03 sec)
-
tests/integration/security/authz_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 23:36:51 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
wantHas: true, }, } for name, tc := range cases { t.Run(name, func(t *testing.T) { has := tc.intervals.has(tc.index) if has != tc.wantHas { t.Errorf("intervalsHaveIndex(_, _) = %t, want %t", has, tc.wantHas) } }) } } func TestFirstPendingIndexes(t *testing.T) { cases := map[string]struct { cnt int completions int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
plugin/pkg/admission/eventratelimit/cache_test.go
"k8s.io/utils/lru" ) func TestSingleCache(t *testing.T) { rateLimiter := flowcontrol.NewTokenBucketRateLimiter(1., 1) cache := singleCache{ rateLimiter: rateLimiter, } cases := []interface{}{nil, "key1", "key2"} for _, tc := range cases { actual := cache.get(tc) if e, a := rateLimiter, actual; e != a { t.Errorf("unexpected entry in cache for key %v: expected %v, got %v", tc, e, a) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 08 02:31:37 UTC 2021 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go
GV GroupVersion `json:"val"` } func TestGroupVersionUnmarshalJSON(t *testing.T) { cases := []struct { input []byte expect GroupVersion }{ {[]byte(`{"val": "v1"}`), GroupVersion{"", "v1"}}, {[]byte(`{"val": "apps/v1"}`), GroupVersion{"apps", "v1"}}, } for _, c := range cases { var result GroupVersionHolder // test golang lib's JSON codec
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc
using ::stablehlo::quantization::io::CreateTmpDir; using ::testing::HasSubstr; using ::tsl::testing::IsOk; using ::tsl::testing::StatusIs; // Test cases for `RunQuantization` mainly tests for error cases because testing // for successful cases require passing python implementation to // `quantization_py_function_lib`, which requires testing from the python level.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/config/model_test.go
json: `{"name":"foobar"}`, }, } for _, tt := range cases { t.Run(fmt.Sprintf("%T", tt.input), func(t *testing.T) { jb, err := ToJSON(tt.input) if err != nil { t.Fatal(err) } if string(jb) != tt.json { t.Fatalf("got %v want %v", string(jb), tt.json) } }) } } func TestToMap(t *testing.T) { cases := []struct { input Spec mp map[string]any }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 17:37:32 UTC 2024 - 7.9K bytes - Viewed (0) -
src/crypto/x509/oid_test.go
} for _, v := range oidTests { oid, ok := newOIDFromDER(v.raw) if !ok { continue } cases = append(cases, struct { in string out OID err error }{ in: v.str, out: oid, err: nil, }) } for _, tt := range cases { o, err := ParseOID(tt.in) if err != tt.err { t.Errorf("ParseOID(%q) = %v; want = %v", tt.in, err, tt.err) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 19:10:38 UTC 2024 - 10.8K bytes - Viewed (0) -
pkg/util/filesystem/util_test.go
{path: "/var/../something", expected: false}, {path: "/var//lib/something", expected: false}, {path: "/var/./lib/something", expected: false}, } // Additional cases applicable on Windows if runtime.GOOS == "windows" { cases = append(cases, []Case{ {path: "\\", expected: true}, {path: "C:/var/lib/something", expected: true}, {path: "C:\\var\\lib\\something", expected: true}, {path: "C:/", expected: true},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 10 17:13:59 UTC 2024 - 3.8K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractSubstitutionOverridesUnwrappingTest.kt
*/ package org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.scopeProvider import org.jetbrains.kotlin.analysis.api.KaSession import org.jetbrains.kotlin.analysis.test.framework.services.expressionMarkerProvider import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.AbstractSymbolTest import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolsData
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 2.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeterm.go
func (x *term) equal(y *term) bool { // easy cases switch { case x == nil || y == nil: return x == y case x.typ == nil || y.typ == nil: return x.typ == y.typ } // ∅ ⊂ x, y ⊂ 𝓤 return x.tilde == y.tilde && Identical(x.typ, y.typ) } // union returns the union x ∪ y: zero, one, or two non-nil terms. func (x *term) union(y *term) (_, _ *term) { // easy cases switch { case x == nil && y == nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.5K bytes - Viewed (0)