Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 459 for Cases (0.02 sec)

  1. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    class SmbUnsupportedOperationExceptionTest {
    
        // Provides a variety of messages including edge cases
        static Stream<String> messages() {
            return Stream.of("custom message", "", " ", "αβγ", "x".repeat(1000), null);
        }
    
        @Test
        @DisplayName("Default constructor sets the expected message and no cause")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. utils/utils_test.go

    			if out := CheckTruth(test.v); out != test.out {
    				t.Errorf("CheckTruth(%s) want: %t, got: %t", test.v, test.out, out)
    			}
    		})
    	}
    }
    
    func TestToStringKey(t *testing.T) {
    	cases := []struct {
    		values []interface{}
    		key    string
    	}{
    		{[]interface{}{"a"}, "a"},
    		{[]interface{}{1, 2, 3}, "1_2_3"},
    		{[]interface{}{1, nil, 3}, "1_nil_3"},
    		{[]interface{}{[]interface{}{1, 2, 3}}, "[1 2 3]"},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers_test.go

    	}
    	qParamsArr := []url.Values{
    		// Invalid cases
    		mkParams("", true, true),
    		mkParams("111", true, true),
    		mkParams("111", true, false),
    		mkParams("111", false, true),
    		// Valid cases follow
    		mkParams("", true, false),
    		mkParams("", false, true),
    		mkParams("", false, false),
    		mkParams("111", false, false),
    	}
    	varsArr := []map[string]string{
    		// Invalid cases
    		{mgmtPrefix: "objprefix"},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-model.md

    But in most of the cases where we need to do something like this, we want the model just to **filter/remove** some of the data as in this example.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 16K bytes
    - Viewed (0)
  5. cmd/utils_test.go

    	}
    }
    
    // Test ceilFrac
    func TestCeilFrac(t *testing.T) {
    	cases := []struct {
    		numerator, denominator, ceiling int64
    	}{
    		{0, 1, 0},
    		{-1, 2, 0},
    		{1, 2, 1},
    		{1, 1, 1},
    		{3, 2, 2},
    		{54, 11, 5},
    		{45, 11, 5},
    		{-4, 3, -1},
    		{4, -3, -1},
    		{-4, -3, 2},
    		{3, 0, 0},
    	}
    	for i, testCase := range cases {
    		ceiling := ceilFrac(testCase.numerator, testCase.denominator)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DosFileFilterTest.java

         * @throws SmbException If an SMB error occurs.
         */
        @ParameterizedTest(name = "Filter: {0}, File: {1}, Expected: {2}")
        @CsvSource({
                // Positive cases (should be accepted)
                "1, 1, true", // ATTR_READONLY
                "2, 2, true", // ATTR_HIDDEN
                "4, 4, true", // ATTR_SYSTEM
                "16, 16, true", // ATTR_DIRECTORY
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryTest.java

        void mock_noInteractions() {
            // Arrange/Act: do nothing
            // Assert: verify no interactions
            verifyNoInteractions(mockEntry);
        }
    
        // --- Fake implementation tests (happy path and edge cases) ---
    
        @Test
        @DisplayName("Fake implementation returns provided values (happy path)")
        void fakeImplementation_happyPath() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/PrimitiveSink.java

       * running on the equivalent input. For cross-language compatibility, use {@link #putString},
       * usually with a charset of UTF-8. For other use cases, use {@code putUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as putString(CharSequence))
       */
      @CanIgnoreReturnValue
      PrimitiveSink putUnencodedChars(CharSequence charSequence);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. docs/en/docs/help-fastapi.md

    In many cases you might already know the answer for those questions. 🤓
    
    If you are helping a lot of people with their questions, you will become an official [FastAPI Expert](fastapi-people.md#fastapi-experts){.internal-link target=_blank}. 🎉
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            assertTrue("Timeout values should be configurable", true);
    
            // Test edge cases
            generator.setCommandTimeout(0L);
            generator.setCommandTimeout(-1L);
            generator.setCommandTimeout(Long.MAX_VALUE);
    
            assertTrue("Timeout edge cases should be handled", true);
        }
    
        // Test ProcessDestroyer inner class
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
Back to top