Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 1,085 for Ensure (0.1 seconds)

  1. cmd/bitrot.go

    			return errFileCorrupt
    		}
    
    		left -= read
    		if !bytes.Equal(h.Sum(nil), hashBuf[:n]) {
    			return errFileCorrupt
    		}
    	}
    	return nil
    }
    
    // bitrotSelfTest performs a self-test to ensure that bitrot
    // algorithms compute correct checksums. If any algorithm
    // produces an incorrect checksum it fails with a hard error.
    //
    // bitrotSelfTest tries to catch any issue in the bitrot implementation
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  2. internal/grid/grid.go

    	case <-w.ctx.Done():
    		return 0, context.Cause(w.ctx)
    	}
    }
    
    // WriterToChannel will return an io.Writer that writes to the given channel.
    // The context both allows returning errors on writes and to ensure that
    // this isn't abandoned if the channel is no longer being read from.
    func WriterToChannel(ctx context.Context, ch chan<- []byte) io.Writer {
    	return &writerWrapper{ch: ch, ctx: ctx}
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            // Verify that SmbShareInfo properly implements FileEntry interface
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
    
            // Cast to FileEntry to ensure interface is properly implemented
            jcifs.smb.FileEntry fileEntry = info;
    
            // Verify all FileEntry methods work
            assertEquals(TEST_NET_NAME, fileEntry.getName());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

                assertTrue("Pattern should match: " + mimeType, Pattern.compile(mimeType).matcher(mimeType).matches());
            }
        }
    
        @Test
        public void test_patternCompilationIsValid() {
            // Ensure all patterns compile without error
            assertNotNull(Pattern.compile(WEB_FILE_RULE_PATTERN));
            assertNotNull(Pattern.compile(FS_FILE_RULE_PATTERN));
            assertNotNull(Pattern.compile(WEB_HTML_RULE_PATTERN));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the Trans2QueryFSInformationResponse class.
     */
    class Trans2QueryFSInformationResponseTest {
    
        /**
         * Tests the constructor to ensure it sets up the command and subcommand correctly.
         */
        @Test
        void testConstructor() {
            Trans2QueryFSInformationResponse response =
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/http-basic-auth.md

    To handle that, we first convert the `username` and `password` to `bytes` encoding them with UTF-8.
    
    Then we can use `secrets.compare_digest()` to ensure that `credentials.username` is `"stanleyjobson"`, and that `credentials.password` is `"swordfish"`.
    
    {* ../../docs_src/security/tutorial007_an_py310.py hl[1,12:24] *}
    
    This would be similar to:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5K bytes
    - Click Count (0)
  7. cmd/bucket-encryption-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Call site replication hook.
    	//
    	// We encode the xml bytes as base64 to ensure there are no encoding
    	// errors.
    	cfgStr := base64.StdEncoding.EncodeToString(configData)
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:      madmin.SRBucketMetaTypeSSEConfig,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

         */
        @Test
        public void test_extendsUserMessages() {
            assertTrue(org.lastaflute.core.message.UserMessages.class.isAssignableFrom(FessLabels.class));
        }
    
        /**
         * Test field count to ensure no unexpected fields are added
         */
        @Test
        public void test_fieldCount() throws Exception {
            Field[] fields = FessLabels.class.getDeclaredFields();
            int labelConstantCount = 0;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

       *
       * Because the encoding of interleaved data is not well-defined for HTTP/1, duplex request
       * bodies may only be used with HTTP/2. Calls to HTTP/1 servers will fail before the HTTP request
       * is transmitted. If you cannot ensure that your client and server both support HTTP/2, do not
       * use this feature.
       *
       * ### Duplex APIs
       *
       * With regular request bodies it is not legal to write bytes to the sink passed to
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:29 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            super.setUp(testInfo);
    
            // Create a temporary test file
            testFile = File.createTempFile("test_mapping", ".txt");
            testFile.deleteOnExit();
            // Ensure the test file is initially empty
            try (java.io.FileWriter fw = new java.io.FileWriter(testFile)) {
                fw.write("");
            }
    
            // Create a temporary project.properties file for SystemHelper
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
Back to Top