Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for TestSerialization (0.26 sec)

  1. src/go/token/serialize_test.go

    	}
    	if err := q.Read(decode); err != nil {
    		t.Errorf("reading fileset failed: %s", err)
    		return
    	}
    	if err := equal(p, q); err != nil {
    		t.Errorf("filesets not identical: %s", err)
    	}
    }
    
    func TestSerialization(t *testing.T) {
    	p := NewFileSet()
    	checkSerialize(t, p)
    	// add some files
    	for i := 0; i < 10; i++ {
    		f := p.AddFile(fmt.Sprintf("file%d", i), p.Base()+i, i*100)
    		checkSerialize(t, p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 17 15:02:55 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

        String test = "test";
        Wrapper<String> wrapper = LENGTH_EQUIVALENCE.wrap(test);
        assertSame(test, wrapper.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(LENGTH_EQUIVALENCE.wrap("hello"));
        SerializableTester.reserializeAndAssert(Equivalence.equals());
        SerializableTester.reserializeAndAssert(Equivalence.identity());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            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);
        AtomicDouble c = serialClone(a);
        assertNotSame(b, c);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (int a : TEST_INTS) {
          SerializableTester.reserializeAndAssert(UnsignedInteger.fromIntBits(a));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (int a : TEST_INTS) {
          SerializableTester.reserializeAndAssert(UnsignedInteger.fromIntBits(a));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        // Garbage in, garbage out.
        assertEquals("[::]]:107", HostAndPort.fromParts("::]", 107).toString());
        assertEquals("[[:]]:108", HostAndPort.fromString("[[:]]:108").toString());
      }
    
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80));
        SerializableTester.reserializeAndAssert(HostAndPort.fromString("host"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 11:19:47 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (long a : TEST_LONGS) {
          SerializableTester.reserializeAndAssert(UnsignedLong.fromLongBits(a));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
        AtomicDoubleArray y = serialClone(x);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            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);
        AtomicDouble c = serialClone(a);
        assertNotSame(b, c);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
        AtomicDoubleArray y = serialClone(x);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top