Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 268 for edge (0.02 sec)

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

                EndpointPair.unordered(1, 1),
                EndpointPair.unordered(1, 3))
            .inOrder();
      }
    
      /**
       * Populates the graph with nodes and edges in a star shape with node `1` in the middle.
       *
       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateTShapedGraph() {
        putEdge(2, 1);
        putEdge(1, 4);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        assertThat(directedGraph.nodes()).isEmpty();
        assertThat(directedGraph.edges()).isEmpty();
        assertThat(directedGraph.addEdge(N1, N2, E12)).isTrue();
        assertThat(directedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12));
        assertThat(directedGraph.edgesConnecting(N2, N1)).isEmpty();
    
        // By default, parallel edges are not allowed.
        IllegalArgumentException e =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            auth.handle(new Callback[] { pc });
            assertEquals("secret", new String(pc.getPassword()));
        }
    
        @Test
        @DisplayName("handle: empty user/domain edge yields '@' and null password")
        void testHandleWithEmptyUserAndDomainEdge() throws Exception {
            // Default constructor results in empty strings for user and domain, null for password
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                readBytes.setAccessible(true);
                assertEquals(0, readBytes.invoke(cancel, buffer, position));
            }
        }
    
        @Nested
        @DisplayName("Edge Cases")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle empty byte arrays")
            void testWithEmptyArrays() throws Exception {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/UUIDTest.java

                // Assert
                assertEquals("FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF", result, "toString() should correctly format maximum value UUID");
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("UUID with mixed case should parse correctly")
            void testMixedCaseUuid() {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbResourceLocatorTest.java

                assertEquals("smb://server/share/path/filetxt", loc.getCanonicalURL());
                assertFalse(loc.isRoot());
            }
        }
    
        @Nested
        @DisplayName("Invalid inputs and edge cases")
        class Invalid {
            @Test
            void nullUrlThrows() {
                assertThrows(IllegalArgumentException.class, () -> new DummySmbResourceLocator(null));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        @RetainedLocalRef Future<?> localTimer = timer;
        // Try to cancel the timer as an optimization.
        // timer may be null if this call to run was by the timer task since there is no happens-before
        // edge between the assignment to timer and an execution of the timer task.
        if (localTimer != null) {
          localTimer.cancel(false);
        }
    
        delegateRef = null;
        timer = null;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

                int result = response.readBytesWireFormat(buffer, bufferIndex);
                assertEquals(2, result, "Should consistently return 2 on call " + (i + 1));
            }
        }
    
        @Test
        @DisplayName("Test edge case with maximum buffer index")
        void testReadBytesWireFormatMaxBufferIndex() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[65536]; // Large buffer
            int bufferIndex = 65534; // Near the end
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

            // Third invocation
            curtainFinallyHook.hook(assistantDirector);
    
            // All invocations should complete successfully
            assertTrue(true);
        }
    
        // Test with null assistant director (edge case)
        public void test_hook_withNullAssistantDirector() {
            // Hook should handle null parameter gracefully
            curtainFinallyHook.hook(null);
    
            // Verify no NullPointerException is thrown
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

            assertEquals(0L, response.getOffset(), "Offset should be initialized to 0");
        }
    
        /* ------------------------------------------------------------------ */
        /* 2. Parameter word reading - happy path & edge cases                */
        /* ------------------------------------------------------------------ */
    
        /**
         * Provides test cases for {@link SmbComSeekResponse#readParameterWordsWireFormat(byte[], int)}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top