- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,126 for testCases (0.32 sec)
-
internal/amztime/iso8601_time_test.go
expectedOutput: "2009-11-13T04:51:01.941Z", }, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.expectedOutput, func(t *testing.T) { gotOutput := ISO8601Format(testCase.date) t.Log("Go", testCase.date.Format(iso8601TimeFormat)) if gotOutput != testCase.expectedOutput { t.Errorf("Expected %s, got %s", testCase.expectedOutput, gotOutput) } }) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Dec 12 18:28:30 UTC 2022 - 1.8K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
testBenchmark(t, v3.RouteType, testCases) } func BenchmarkClusterGeneration(b *testing.B) { runBenchmark(b, v3.ClusterType, testCases) } func TestClusterGeneration(t *testing.T) { testBenchmark(t, v3.ClusterType, testCases) } func BenchmarkListenerGeneration(b *testing.B) { runBenchmark(b, v3.ListenerType, testCases) } func TestListenerGeneration(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
pkg/kubelet/cm/containermap/container_map_test.go
) func TestContainerMap(t *testing.T) { testCases := []struct { podUID string containerNames []string containerIDs []string }{ { "fakePodUID", []string{"fakeContainerName-1", "fakeContainerName-2"}, []string{"fakeContainerID-1", "fakeContainerName-2"}, }, } for _, tc := range testCases { // Build a new containerMap from the testCases, checking proper
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 02 13:40:55 UTC 2023 - 2.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/diff_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 04:08:57 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/apis/core/pods/helpers_test.go
*/ package pods import ( "reflect" "testing" "k8s.io/apimachinery/pkg/util/validation/field" api "k8s.io/kubernetes/pkg/apis/core" ) func TestVisitContainersWithPath(t *testing.T) { testCases := []struct { description string path *field.Path haveSpec *api.PodSpec wantNames []string }{ { "empty podspec", field.NewPath("spec"), &api.PodSpec{}, []string{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 01:35:30 UTC 2023 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go
} return []schema.GroupVersionKind{*t.gvk}, false, t.err } func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool { return false } func TestSerializerEncodeWithAllocator(t *testing.T) { testCases := []struct { name string obj runtime.Object }{ { name: "encode a bufferedMarshaller obj", obj: &testapigroupv1.Carp{ TypeMeta: metav1.TypeMeta{APIVersion: "group/version", Kind: "Carp"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 03:17:50 UTC 2022 - 5K bytes - Viewed (0) -
pkg/volume/csimigration/plugin_manager_test.go
featuregatetesting "k8s.io/component-base/featuregate/testing" csitrans "k8s.io/csi-translation-lib" "k8s.io/kubernetes/pkg/features" "k8s.io/kubernetes/pkg/volume" ) func TestIsMigratable(t *testing.T) { testCases := []struct { name string pluginFeature featuregate.Feature pluginFeatureEnabled bool csiMigrationEnabled bool isMigratable bool spec *volume.Spec }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 14:55:34 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/object-handlers-common_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" ) // Tests - canonicalizeETag() func TestCanonicalizeETag(t *testing.T) { testCases := []struct { etag string canonicalizedETag string }{ { etag: "\"\"\"", canonicalizedETag: "", }, { etag: "\"\"\"abc\"",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
{"def", true, "def", 3}, {"", true, "", 0}, } for i, testCase := range testCases { adv, token, err := splitYAMLDocument([]byte(testCase.input), testCase.atEOF) if err != nil { t.Errorf("%d: unexpected error: %v", i, err) continue } if adv != testCase.adv { t.Errorf("%d: advance did not match: %d %d", i, testCase.adv, adv) } if testCase.expect != string(token) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 12.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
expectedErr: "", }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { // only the KMSv2 feature flag is enabled _, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "") if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) { t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0)