Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for reserialized (0.06 sec)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<Class<?>> predicate = Predicates.subtypeOf(Integer.class);
        Predicate<Class<?>> reserialized = SerializableTester.reserializeAndAssert(predicate);
    
        assertEvalsLike(predicate, reserialized, Integer.class);
        assertEvalsLike(predicate, reserialized, Float.class);
        assertEvalsLike(predicate, reserialized, null);
      }
    
      /*
       * Tests for Predicates.isNull()
       */
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

      }
    
      public void testSerialization() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        map.put("key", 1L);
        AtomicLongMap<String> reserialized = SerializableTester.reserialize(map);
        assertEquals(map.asMap(), reserialized.asMap());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          derivedSuites.add(
              MultisetTestSuiteBuilder.using(
                      new ReserializedMultisetGenerator<E>(parentBuilder.getSubjectGenerator()))
                  .named(getName() + " reserialized")
                  .withFeatures(computeReserializedMultisetFeatures(parentBuilder.getFeatures()))
                  .suppressing(parentBuilder.getSuppressedTests())
                  .withSetUp(parentBuilder.getSetUp())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

                      new ReserializedMapGenerator<K, V>(parentBuilder.getSubjectGenerator()))
                  .withFeatures(computeReserializedMapFeatures(parentBuilder.getFeatures()))
                  .named(parentBuilder.getName() + " reserialized")
                  .suppressing(parentBuilder.getSuppressedTests())
                  .withSetUp(parentBuilder.getSetUp())
                  .withTearDown(parentBuilder.getTearDown())
                  .createTestSuite());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          derivedSuites.add(
              MultisetTestSuiteBuilder.using(
                      new ReserializedMultisetGenerator<E>(parentBuilder.getSubjectGenerator()))
                  .named(getName() + " reserialized")
                  .withFeatures(computeReserializedMultisetFeatures(parentBuilder.getFeatures()))
                  .suppressing(parentBuilder.getSuppressedTests())
                  .withSetUp(parentBuilder.getSetUp())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                  @Override
                  public SortedMultiset<E> create(Object... entries) {
                    return SerializableTester.reserialize(((SortedMultiset<E>) super.create(entries)));
                  }
                })
            .named(parentBuilder.getName() + " reserialized")
            .withFeatures(features)
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

                  .withFeatures(computeReserializedMultimapFeatures(parentBuilder.getFeatures()))
                  .named(parentBuilder.getName() + " reserialized")
                  .suppressing(parentBuilder.getSuppressedTests())
                  .withSetUp(parentBuilder.getSetUp())
                  .withTearDown(parentBuilder.getTearDown())
                  .createTestSuite());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                    "Serialization failed on return value of " + factory, e.getCause());
              } catch (AssertionFailedError e) {
                throw new AssertionError(
                    "Return value of " + factory + " reserialized to an unequal value", e);
              }
            }
          }
          return this;
        }
    
        private ImmutableList<Invokable<?, ?>> getFactoriesToTest() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. internal/grid/types.go

    	if b == nil {
    		bb := Bytes(nil)
    		return &bb
    	}
    	bb := NewBytesCap(len(b))
    	*bb = append(*bb, b...)
    	return bb
    }
    
    // Bytes provides a byte slice that can be serialized.
    type Bytes []byte
    
    // UnmarshalMsg deserializes b from the provided byte slice and returns the
    // remainder of bytes.
    func (b *Bytes) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	if b == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            double z = a.updateAndGet(value -> value - y);
            assertBitEquals(x - y, z);
            assertBitEquals(x - y, a.get());
          }
        }
      }
    
      /** a deserialized serialized atomic holds same value */
      public void testSerialization() throws Exception {
        AtomicDouble a = new AtomicDouble();
        AtomicDouble b = serialClone(a);
        assertNotSame(a, b);
        a.set(-22.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top