- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for newName (0.05 sec)
-
migrator/migrator.go
func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error { return m.RunWithValue(value, func(stmt *gorm.Statement) error { if stmt.Schema != nil { if field := stmt.Schema.LookUpField(oldName); field != nil { oldName = field.DBName } if field := stmt.Schema.LookUpField(newName); field != nil { newName = field.DBName } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Jun 06 02:35:01 UTC 2025 - 29.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
FileNotifyInformation renamedNew = mock(FileNotifyInformation.class); when(renamedNew.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME); when(renamedNew.getFileName()).thenReturn("newname.txt"); List<FileNotifyInformation> notifications = Arrays.asList(addedFile, removedFile, modifiedFile, renamedOld, renamedNew); MockNotifyResponse response = new MockNotifyResponse(notifications);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
tests/upsert_test.go
} else if langs[0].Name != "upsert-new" { t.Errorf("should update name on conflict, but got name %+v", langs[0].Name) } lang = Language{Code: "upsert", Name: "Upsert-Newname"} if err := DB.Clauses(clause.OnConflict{UpdateAll: true}).Create(&lang).Error; err != nil { t.Fatalf("failed to upsert, got %v", err) } var result Language
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 29 11:06:13 UTC 2025 - 13.1K bytes - Viewed (0) -
tests/update_test.go
// Update a single field of the user and verify that the changed address is not stored. newAge := uint(100) user.Account.Number = "new_account_number" db := DB.Model(&user).UpdateColumns(User{Age: newAge}) if db.RowsAffected != 1 { t.Errorf("Expected RowsAffected=1 but instead RowsAffected=%v", db.RowsAffected) } // Verify that Age now=`newAge`. result := &User{} result.ID = user.ID DB.Preload("Account").First(result)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
srvsvc.ShareInfo0 shareInfo0 = new srvsvc.ShareInfo0(); shareInfo0.netname = null; shareInfo0.encode(mockNdrBuffer); // Verify the encode operations verify(mockNdrBuffer).align(4); verify(mockNdrBuffer).enc_ndr_referent(null, 1); // Should not encode string if netname is null verify(mockDeferredBuffer, never()).enc_ndr_string(anyString()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java
assertEquals("http://localhost/newpage", HcHttpClient.constructRedirectLocation("http://localhost", "newpage")); assertEquals("http://localhost/newpage", HcHttpClient.constructRedirectLocation("http://localhost/path/", "../newpage")); assertEquals("http://localhost/path/newpage", HcHttpClient.constructRedirectLocation("http://localhost/path/", "./newpage"));
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java
* The network name of the share. */ public String netname; @Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(netname, 1); if (netname != null) { _dst = _dst.deferred; _dst.enc_ndr_string(netname); } } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.java
*/ public String netname; @Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(this.netname, 1); if (this.netname != null) { _dst = _dst.deferred; _dst.enc_ndr_string(this.netname); } } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 27K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
void testSetLastModified() throws SmbException { // Arrange long newTime = System.currentTimeMillis(); doNothing().when(smbFile).setLastModified(newTime); // Act smbFile.setLastModified(newTime); // Assert verify(smbFile).setLastModified(newTime); } } @Nested class WhenHandlingErrors {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
assertEquals(0L, info.length()); } @Test @DisplayName("Test equals method with same netName") void testEqualsWithSameNetName() { SmbShareInfo info1 = new SmbShareInfo("Share1", 0, "Remark1"); SmbShareInfo info2 = new SmbShareInfo("Share1", 1, "Remark2"); // Same netName, different type and remark assertTrue(info1.equals(info2)); assertTrue(info2.equals(info1));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0)