Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 5,437 for expectUsed (0.23 sec)

  1. pkg/kubelet/server/auth_test.go

    		subpath  string
    		path     string
    		expected bool
    	}{
    		"empty": {subpath: "", path: "", expected: true},
    
    		"match 1": {subpath: "foo", path: "foo", expected: true},
    		"match 2": {subpath: "/foo", path: "/foo", expected: true},
    		"match 3": {subpath: "/foo/", path: "/foo/", expected: true},
    		"match 4": {subpath: "/foo/bar", path: "/foo/bar", expected: true},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/staticpod/utils_test.go

    	tests := []struct {
    		desc     string
    		endpoint *kubeadmapi.APIEndpoint
    		expected string
    	}{
    		{
    			desc:     "nil endpoint returns 127.0.0.1",
    			expected: "127.0.0.1",
    		},
    		{
    			desc:     "empty AdvertiseAddress endpoint returns 127.0.0.1",
    			endpoint: &kubeadmapi.APIEndpoint{},
    			expected: "127.0.0.1",
    		},
    		{
    			desc: "filled in AdvertiseAddress endpoint returns it",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 15:44:44 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  4. test/fixedbugs/bug242.go

    		panic("fail")
    	}
    	i++
    	return p
    }
    func e3(p *I, expected byte) *I {
    	if i != expected {
    		println("e3: got", i, "expected", expected)
    		panic("fail")
    	}
    	i++
    	return p
    }
    
    func main() {
    	for i := range a {
    		a[i] = ' '
    	}
    
    	// 0     1     2     3        4        5
    	*f(), *f(), *f() = gbyte(), gbyte(), gbyte()
    
    	// 6     7     8
    	*f(), *f() = x()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go

    		require.NoError(t, err)
    		actual := o2.(*v2.APIGroupDiscoveryList)
    
    		if !reflect.DeepEqual(expected, actual) {
    			t.Error(cmp.Diff(expected, actual))
    		}
    	}
    
    	// v2beta1 -> v2 -> v2beta1
    	for i := 0; i < 100; i++ {
    		expected := &v2beta1.APIGroupDiscoveryList{}
    		fuzzer.Fuzz(expected)
    		expected.TypeMeta = metav1.TypeMeta{
    			Kind:       "APIGroupDiscoveryList",
    			APIVersion: "apidiscovery.k8s.io/v2beta1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go

    		config   *clientcmdapi.Config
    		expected bool
    	}{
    		{
    			name:     "nil context",
    			config:   nil,
    			expected: false,
    		},
    		{
    			name:     "no CurrentContext value",
    			config:   &clientcmdapi.Config{},
    			expected: false,
    		},
    		{
    			name:     "no CurrentContext object",
    			config:   &clientcmdapi.Config{CurrentContext: "kubernetes"},
    			expected: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 06:49:59 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/v1beta1/conversion_test.go

    			if err := Convert_v1beta1_LimitedPriorityLevelConfiguration_To_flowcontrol_LimitedPriorityLevelConfiguration(test.in, out, nil); err != nil {
    				t.Errorf("Expected no error, but got: %v", err)
    			}
    			if !cmp.Equal(test.expected, out) {
    				t.Errorf("Expected a match, diff: %s", cmp.Diff(test.expected, out))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 26 19:34:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      }
    
      /**
       * Asserts that a Unicode escaper escapes the given code point into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param cp the Unicode code point to escape
       */
      public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) {
    
        String escaped = computeReplacement(escaper, cp);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

      }
    
      /**
       * Asserts that a Unicode escaper escapes the given code point into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param cp the Unicode code point to escape
       */
      public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) {
    
        String escaped = computeReplacement(escaper, cp);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server_linux_test.go

    		return
    	}
    	if !reflect.DeepEqual(got.Spec.PodCIDRs, expected) {
    		t.Errorf("waitForPodCIDR() got %v expected to be %v ", got.Spec.PodCIDRs, expected)
    	}
    }
    
    func TestGetConntrackMax(t *testing.T) {
    	ncores := goruntime.NumCPU()
    	testCases := []struct {
    		min        int32
    		maxPerCore int32
    		expected   int
    		err        string
    	}{
    		{
    			expected: 0,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top