Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expectedBytes (0.35 sec)

  1. cmd/kubeadm/app/util/apiclient/dryrunclient_test.go

    	var tests = []struct {
    		name          string
    		action        core.Action
    		expectedBytes []byte
    		buf           *bytes.Buffer
    	}{
    		{
    			name:   "action GET on services",
    			action: core.NewGetAction(schema.GroupVersionResource{Version: "v1", Resource: "services"}, "default", "kubernetes"),
    			expectedBytes: []byte(`[dryrun] Would perform action GET on resource "services" in API group "core/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        // ensures that the number of invocations looks sane
        void assertInvariants(int expectedBytes) {
          // we should have seen as many bytes as the next multiple of chunk after expectedBytes - 1
          assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
          assertEquals(expectedBytes / chunkSize, processCalled);
          assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/common_test.go

    	var tests = []struct {
    		name          string
    		cfg           *kubeadmapi.ClusterConfiguration
    		buf           *bytes.Buffer
    		expectedBytes []byte
    	}{
    		{
    			name:          "config is nil",
    			cfg:           nil,
    			expectedBytes: []byte(""),
    		},
    		{
    			name: "cluster config with local Etcd",
    			cfg: &kubeadmapi.ClusterConfiguration{
    				KubernetesVersion: "v1.7.1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
        // Test
        MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE);
        map.put(expectedBytes);
    
        // Verify
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesTest.java

        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
        // Test
        MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE);
        map.put(expectedBytes);
    
        // Verify
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        // ensures that the number of invocations looks sane
        void assertInvariants(int expectedBytes) {
          // we should have seen as many bytes as the next multiple of chunk after expectedBytes - 1
          assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
          assertEquals(expectedBytes / chunkSize, processCalled);
          assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/helpers_test.go

    	}
    	if expectedBytes := int64(nodeAvailableBytes); memQuantity.available.Value() != expectedBytes {
    		t.Errorf("Expected %v, actual: %v", expectedBytes, memQuantity.available.Value())
    	}
    	if expectedBytes := int64(nodeWorkingSetBytes + nodeAvailableBytes); memQuantity.capacity.Value() != expectedBytes {
    		t.Errorf("Expected %v, actual: %v", expectedBytes, memQuantity.capacity.Value())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/upgrade/plan_test.go

    				t.Errorf("unexpected error when print object: %v", err)
    			}
    
    			actualBytes := rt.buf.Bytes()
    			if !bytes.Equal(actualBytes, rt.expectedBytes) {
    				t.Errorf(
    					"failed PrintUpgradePlan:\n\texpected: %s\n\n\tactual: %s",
    					string(rt.expectedBytes),
    					string(actualBytes),
    				)
    			}
    		})
    	}
    }
    
    func TestPrintUpgradePlanStructured(t *testing.T) {
    	upgrades := []upgrade.Upgrade{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  9. pkg/kubelet/prober/prober.go

    	if eic.writer != nil {
    		// only record the write error, do not cover the command run error
    		if p, err := eic.writer.Write(data); err != nil {
    			klog.ErrorS(err, "Unable to write all bytes from execInContainer", "expectedBytes", len(data), "actualBytes", p)
    		}
    	}
    	return err
    }
    
    func (eic *execInContainer) Wait() error {
    	return nil
    }
    
    func (eic *execInContainer) StdoutPipe() (io.ReadCloser, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:50:13 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. security/pkg/pki/ca/ca_test.go

    			CheckInterval: rootCertCheckInverval,
    		},
    	}
    
    	return NewIstioCA(caOpts)
    }
    
    func comparePem(expectedBytes []byte, file string) bool {
    	fileBytes, err := os.ReadFile(file)
    	if err != nil {
    		return false
    	}
    	if !bytes.Equal(fileBytes, expectedBytes) {
    		return false
    	}
    	return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 08:51:27 UTC 2023
    - 29.1K bytes
    - Viewed (0)
Back to top