- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for expectedBytes (0.35 sec)
-
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) -
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) -
cmd/kubeadm/app/cmd/upgrade/common_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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)