Search Options

Results per page
Sort
Preferred Languages
Advance

Results 651 - 660 of 1,070 for results2 (0.24 sec)

  1. utils/utils_test.go

    			expected: []int{1, 2, 3},
    		},
    	}
    
    	for _, testcase := range tests {
    		t.Run(testcase.name, func(t *testing.T) {
    			result := RTrimSlice(testcase.input, testcase.trimLen)
    			if !AssertEqual(result, testcase.expected) {
    				t.Errorf("RTrimSlice(%v, %d) = %v; want %v", testcase.input, testcase.trimLen, result, testcase.expected)
    			}
    		})
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/Name.java

        @Override
        public int hashCode() {
            int result = name.hashCode();
            result += 65599 * hexCode;
            result += 65599 * srcHashCode; /* hashCode is different depending
                                            * on where it came from
                                            */
            if (scope != null && scope.length() != 0) {
                result += scope.hashCode();
            }
            return result;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. tests/soft_delete_test.go

    	}
    }
    
    func TestDeletedAtUnMarshal(t *testing.T) {
    	expected := &gorm.Model{}
    	b, _ := json.Marshal(expected)
    
    	result := &gorm.Model{}
    	_ = json.Unmarshal(b, result)
    	if result.DeletedAt != expected.DeletedAt {
    		t.Errorf("Failed, result.DeletedAt: %v is not same as expected.DeletedAt: %v", result.DeletedAt, expected.DeletedAt)
    	}
    }
    
    func TestDeletedAtOneOr(t *testing.T) {
    	actualSQL := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            try {
                Artifact artifact = new Artifact("invalid-prefix-simple", "1.0.0");
                String result = themeHelper.getThemeName(artifact);
                // May not throw exception but return unexpected result
                assertNotNull(result);
            } catch (Exception e) {
                assertTrue(true); // Expected exception
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            assertFalse(it.hasNext());
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("Name filter throwing CIFSException results in skip, not failure")
        void nameFilterThrowsIsHandled() throws Exception {
            // Arrange
            stubAcquireReturnsSelf();
            when(nameFilter.accept(parent, "bad")).thenThrow(new CIFSException("bad name"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/SMBUtilTest.java

            int result = SMBUtil.readInt2(buffer, 0);
            assertEquals(expected & 0xFFFF, result);
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, 0xFFFFFFFFL, 0x12345678L, 0x80000000L })
        void testWriteReadInt4RoundTrip(long input) {
            byte[] buffer = new byte[8];
            SMBUtil.writeInt4(input, buffer, 0);
            int result = SMBUtil.readInt4(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacLogonInfoTest.java

            }
    
            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
            PacDataInputStream pacStream = new PacDataInputStream(bais);
    
            String result = pacStream.readString();
            assertEquals(testString, result);
        }
    
        @Test
        @DisplayName("Test PacDataInputStream readString with empty string")
        void testReadEmptyString() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteSource.java

              return Optional.of(Long.MAX_VALUE);
            }
          }
          return Optional.of(result);
        }
    
        @Override
        public long size() throws IOException {
          long result = 0L;
          for (ByteSource source : sources) {
            result += source.size();
            if (result < 0) {
              // Overflow (or one or more sources that returned a negative size, but all bets are off in
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 20:55:20 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

        return delegate().submit(task);
      }
    
      @Override
      public <T extends @Nullable Object> ListenableFuture<T> submit(
          Runnable task, @ParametricNullness T result) {
        return delegate().submit(task, result);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

        }
    
        @Override
        public int hashCode() {
            int result = interfaceIndex;
            result = 31 * result + (address != null ? address.hashCode() : 0);
            return result;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top