Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for expectedly (0.18 sec)

  1. pkg/controller/deployment/deployment_controller_test.go

    		t.Fatalf("queue.Len() = %v, want %v", got, want)
    	}
    	key, done := dc.queue.Get()
    	if key == "" || done {
    		t.Fatalf("failed to enqueue controller for rs %v", rs1.Name)
    	}
    	expectedKey, _ := controller.KeyFunc(d1)
    	if got, want := key, expectedKey; got != want {
    		t.Errorf("queue.Get() = %v, want %v", got, want)
    	}
    
    	dc.addReplicaSet(logger, rs2)
    	if got, want := dc.queue.Len(), 1; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/transformer_test.go

    			gotLog := regexp.MustCompile(`\w+ \d+:\d+:\d+\.\d+.*\d+.*transformer_test.go:\d+].`).ReplaceAllString(buf.String(), "")
    
    			if gotLog != tt.expectedLog {
    				t.Errorf("expected log message %q, got %q", tt.expectedLog, gotLog)
    			}
    		})
    	}
    }
    
    func testContext(t *testing.T) context.Context {
    	ctx, cancel := context.WithCancel(context.Background())
    	t.Cleanup(cancel)
    	return ctx
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 22:44:02 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  3. pkg/volume/iscsi/iscsi_test.go

    					},
    				},
    			},
    			expectedName:  "",
    			expectedNs:    "",
    			expectedError: nil,
    		},
    	}
    	for _, testcase := range tests {
    		resultName, resultNs, err := getISCSISecretNameAndNamespace(testcase.spec, testcase.defaultNs)
    		if err != testcase.expectedError || resultName != testcase.expectedName || resultNs != testcase.expectedNs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

    class ConvertTensorTest : public ::testing::Test {
     protected:
      template <typename T>
      void VerifyConversion(std::initializer_list<T> values, DataType dtype,
                            mlir::Type expected_ty) {
        mlir::Builder b(expected_ty.getContext());
        Tensor tensor(dtype, TensorShape({static_cast<int64_t>(values.size())}));
        tensor.flat<T>().setValues(values);
    
        auto value_or = ConvertTensor(tensor, &b);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go

    		return allErrs
    	}
    
    	for i, key := range keys {
    		allErrs = append(allErrs, validateKey(key, fieldPath.Index(i), expectedLen)...)
    	}
    
    	return allErrs
    }
    
    func validateKey(key apiserver.Key, fieldPath *field.Path, expectedLen []int) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if key.Name == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/test/resources/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessors-expected-output.txt

    Paul Merlin <******@****.***> 1690890212 +0200
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go

    					t.Errorf("Unexpected AuditID in audit event, AuditID should be the same with Audit-ID http header")
    				}
    				if expectedID == types.UID("") {
    					expectedID = event.AuditID
    				} else if expectedID != event.AuditID {
    					t.Errorf("Audits for one request should share the same AuditID, %s differs from %s", expectedID, event.AuditID)
    				}
    				if event.ObjectRef.APIVersion != "v1" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/dra/claiminfo_test.go

    	for _, test := range []struct {
    		description string
    		claimInfo   *ClaimInfo
    		expectedLen int
    	}{
    		{
    			description: "successfully add pod reference",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    					PodUIDs: sets.New[string](),
    				},
    			},
    			expectedLen: 1,
    		},
    		{
    			description: "duplicate pod reference",
    			claimInfo: &ClaimInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    	tests := []struct {
    		name     string
    		err      error
    		expected bool
    	}{
    		{
    			name:     "with no error",
    			expected: false,
    		},
    		{
    			name:     "with EOF error",
    			err:      io.EOF,
    			expected: true,
    		},
    		{
    			name:     "with unexpected EOF error",
    			err:      io.ErrUnexpectedEOF,
    			expected: true,
    		},
    		{
    			name:     "with broken connection error",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  10. src/crypto/tls/conn_test.go

    		}
    		if good != expectedGood {
    			t.Errorf("#%d: wrong validity, want:%d got:%d", i, expectedGood, good)
    		}
    		if good == 255 && len(test.in)-paddingLen != test.expectedLen {
    			t.Errorf("#%d: got %d, want %d", i, len(test.in)-paddingLen, test.expectedLen)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top