- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 11 for non_existing (0.1 seconds)
-
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) -
tests/main_test.go
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) -
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) -
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) -
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) -
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) -
src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java
} @Test public void test_recordOnNonExistentKey() { String key = "non_existent"; crawlerStatsHelper.record(key, "test_action"); assertNull(localLogMsg.get()); } @Test public void test_runOnThreadOnNonExistentKey() { String key = "non_existent"; crawlerStatsHelper.runOnThread(key); assertNull(localLogMsg.get()); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 15.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java
assertEquals(1, intValues.length); assertEquals("123", intValues[0]); String[] nullValues = defaultContentsParser.getFieldValues(document, "non_existent"); assertEquals(0, nullValues.length); } @Test public void test_parseSearchWords() throws Exception { String[] words = new String[] { "検索", "エンジン" };
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 12.1K bytes - Click Count (0) -
tests/lru_test.go
k, v, ok := lc.RemoveOldest() if k != "" { t.Fatalf("should be empty") } if v != "" { t.Fatalf("should be empty") } if ok { t.Fatalf("should be false") } ok = lc.Remove("non_existent") if ok { t.Fatalf("should be false") } lc.Add("key1", "val1") if lc.Len() != 1 { t.Fatalf("length differs from expected") } v, ok = lc.Get("key1") if !ok {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 10.4K bytes - Click Count (0) -
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)