- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for expectedBytes (0.23 sec)
-
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) -
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) -
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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
} objBytes, err := unstructured.MarshalJSON() if err != nil { t.Fatalf("err marshaling json: %v", err) } expectedBytes, err := tc.expectedObj.MarshalJSON() if err != nil { t.Fatalf("err marshaling json: %v", err) } if bytes.Compare(objBytes, expectedBytes) != 0 { t.Fatalf("expected obj: \n%v\n got obj: \n%v\n", tc.expectedObj, obj) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0)