Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for nonExisting (0.45 seconds)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            Path tempDir = Files.createTempDirectory("toctou_cmd_test");
            try {
                Path nonExisting = tempDir.resolve("non_existing.tmp");
                assertFalse(Files.exists(nonExisting));
    
                boolean deleted = Files.deleteIfExists(nonExisting);
    
                assertFalse(deleted);
            } finally {
                deleteDirectory(tempDir.toFile());
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

        }
    
        // Test getDataStore with non-existing name
        @Test
        public void test_getDataStore_nonExistingName() {
            DataStore retrieved = dataStoreFactory.getDataStore("nonExisting");
            assertNull(retrieved);
        }
    
        // Test getDataStore with null name
        @Test
        public void test_getDataStore_nullName() {
            DataStore retrieved = dataStoreFactory.getDataStore(null);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  3. cmd/data-usage_test.go

    		},
    		{
    			path:   "/dir1",
    			size:   1302010,
    			objs:   5,
    			oSizes: sizeHistogram{0: 1, 1: 1, 2: 2, 4: 1},
    		},
    		{
    			path:  "/dir1/dira",
    			isNil: true,
    		},
    		{
    			path:  "/nonexistying",
    			isNil: true,
    		},
    	}
    
    	for _, w := range want {
    		p := path.Join(bucket, w.path)
    		t.Run(p, func(t *testing.T) {
    			e := got.find(p)
    			if w.isNil {
    				if e != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  4. tests/main_test.go

    		t.Errorf("Should be able to get setting after set")
    	} else if value.(string) != "world" {
    		t.Errorf("Set value should not be changed")
    	}
    
    	if _, ok := DB.Get("non_existing"); ok {
    		t.Errorf("Get non existing key should return error")
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  5. chainable_api.go

    //
    // Attrs only adds attributes if the record is not found.
    //
    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "******@****.***"}
    //
    //	// assign an email if the record is not found, otherwise ignore provided email
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 19 01:49:06 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  6. finisher_api.go

    //
    // FirstOrInit never modifies the database. It is often used with Assign and Attrs.
    //
    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "******@****.***"}
    //
    //	// assign email regardless of if record is found
    //	db.Where(User{Name: "jinzhu"}).Assign(User{Email: "******@****.***"}).FirstOrInit(&user)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 19 01:49:06 GMT 2025
    - 22.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java

            // Test that Files.deleteIfExists doesn't throw on non-existing file
            Path tempDir = Files.createTempDirectory("toctou_test");
            try {
                Path nonExistingFile = tempDir.resolve("non_existing.tmp");
                assertFalse(Files.exists(nonExistingFile));
    
                // Should return false without throwing exception
                boolean deleted = Files.deleteIfExists(nonExistingFile);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.5K bytes
    - Click Count (0)
Back to Top