Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for Op (0.35 sec)

  1. guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

      }
    
      @Test
      public void hasCycle_twoCyclicEdges() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.putEdge(1, 2);
          graph.putEdge(2, 1); // no-op in undirected case
        }
        assertThat(hasCycle(directedGraph)).isTrue();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_threeAcyclicEdges() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 07 15:09:01 GMT 2016
    - 5.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

          // the operation would be a no-op, so exceptions are allowed but not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceEntry_unsupportedAbsentKey() {
        try {
          getMap().replace(k3(), v3(), v4());
        } catch (UnsupportedOperationException tolerated) {
          // the operation would be a no-op, so exceptions are allowed but not required
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java

          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemove_nullValueQueriesUnsupported() {
        try {
          assertFalse(getMap().remove(k3(), null));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      public void testOrdering() {
        final List<Integer> callOrder = Lists.newArrayList();
    
        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
          public void run() {
            callOrder.add(op);
          }
        }
    
        e.execute(new FakeOp(0));
        e.execute(new FakeOp(1));
        e.execute(new FakeOp(2));
        fakePool.runAll();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemove_nullValueQueriesUnsupported() {
        try {
          assertFalse(getMap().remove(k3(), null));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemove_nullValueQueriesUnsupported() {
        try {
          assertFalse(getMap().remove(k3(), null));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

          for (int i = 0; i < iterations; i++) {
            int keyIndex = random.nextInt(nKeys);
            String key = keys.get(keyIndex);
            Operation op = operations[random.nextInt(operations.length)];
            switch (op) {
              case ADD:
                {
                  int delta = random.nextInt(10);
                  multiset.add(key, delta);
                  deltas[keyIndex] += delta;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

          // the operation would be a no-op, so exceptions are allowed but not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceEntry_unsupportedAbsentKey() {
        try {
          getMap().replace(k3(), v3(), v4());
        } catch (UnsupportedOperationException tolerated) {
          // the operation would be a no-op, so exceptions are allowed but not required
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/SerializableTester.java

     * serialization tests require more setup. This no-op behavior allows test authors to intersperse
     * {@code SerializableTester} calls with other, GWT-compatible tests.
     *
     * @author Mike Bostock
     * @since 10.0
     */
    @GwtCompatible // but no-op!
    @ElementTypesAreNonnullByDefault
    public final class SerializableTester {
      private SerializableTester() {}
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top