Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for intentionally (0.06 sec)

  1. internal/s3select/jstream/scanner_test.go

    func newMockReader(failAfter int, data byte) *mockReader {
    	return &mockReader{0, data, failAfter}
    }
    
    func (r *mockReader) Read(p []byte) (n int, err error) {
    	if r.pos >= r.failAfter {
    		return 0, fmt.Errorf("intentionally unexpected reader error")
    	}
    	r.pos++
    	p[0] = r.mockData
    	return 1, nil
    }
    
    func TestScannerFailure(t *testing.T) {
    	var (
    		i         int
    		failAfter = 900
    		mockData  = byte(32)
    	)
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            SmbBasicFileInfo info = null;
    
            // Act & Assert: attempting to call any method on null should throw NPE
            Assertions.assertThrows(NullPointerException.class, () -> {
                // Intentionally dereference null to validate exception behavior
                // This checks that callers must handle null references defensively
                info.getSize();
            });
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.Configuration;
    
    /**
     * Unit tests for {@link SmbComFindClose2}.
     * The class is intentionally tiny – the tests mainly verify that the
     * parameter word (the session identifier) is written in little‑endian form
     * and that the {@code toString} helper contains the expected values.
     *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/CredentialsInternalTest.java

        void createContext_edge_parameters_ok() throws Exception {
            TestCredentials creds = new TestCredentials("D", false, false, new Subject(), false);
            // Intentionally pass null/empty values for optional parameters; expect no exception
            SSPContext ctx1 = creds.createContext(mockContext, null, "", null, false);
            assertNotNull(ctx1);
        }
    
        @Nested
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

         * <li>The name of the child's base directory matches the artifact id of the child.</li>
         * </ul>
         * Note that for the sake of independence from the user
         * environment, the filesystem is intentionally not used for the calculation.</p>
         *
         * @param child The child model, must not be <code>null</code>.
         * @param parent The parent model, may be <code>null</code>.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

            Violation violation = Violation.error(
                member,
                rejection.getHumanExplanation() + """.
                    <br>
                    <p>
                    If you did this intentionally, please accept the change and provide an explanation:
                    <a class="btn btn-info" role="button" data-toggle="collapse" href="#accept-${changeId}" aria-expanded="false" aria-controls="collapseExample">Accept this change</a>
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
       * though, would be to run the tests that use TestThread in separate VMs so that their threads
       * don't hang around during other tests.)
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[22] *}
    
    /// tip
    
    All this might seem contrived. And it might not be very clear how is it useful yet.
    
    These examples are intentionally simple, but show how it all works.
    
    In the chapters about security, there are utility functions that are implemented in this same way.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Nov 13 07:37:15 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
       * though, would be to run the tests that use TestThread in separate VMs so that their threads
       * don't hang around during other tests.)
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/archive/tar/strconv.go

    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	// Parse the first token as a decimal integer.
    	n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int
    	if perr != nil || n < 5 || n > int64(len(s)) {
    		return "", "", s, ErrHeader
    	}
    	n -= int64(len(nStr) + 1) // convert from index in s to index in rest
    	if n <= 0 {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top