- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 950 for mirror (0.03 sec)
-
tests/hooks_test.go
p := Product{Code: "Invalid", Price: 100} if DB.Save(&p).Error == nil { t.Fatalf("An error from before create callbacks happened when create with invalid value") } if DB.Where("code = ?", "Invalid").First(&Product{}).Error == nil { t.Fatalf("Should not save record that have errors") } if DB.Save(&Product{Code: "dont_save", Price: 100}).Error == nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
interfaces.go
type GetDBConnector interface { GetDBConn() (*sql.DB, error) } // Rows rows interface type Rows interface { Columns() ([]string, error) ColumnTypes() ([]*sql.ColumnType, error) Next() bool Scan(dest ...interface{}) error Err() error Close() error } type ErrorTranslator interface { Translate(err error) error
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Aug 19 13:33:31 UTC 2023 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
} /** * Test constructor DcerpcException(int error) with an unknown error code. */ @Test void testConstructorWithError_unknownCode() { int errorCode = 0x12345678; // An arbitrary unknown error code DcerpcException exception = new DcerpcException(errorCode); assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ErrorToWarnRewritePolicyTest.java
.setLevel(Level.ERROR) .setMessage(new SimpleMessage("test error message")) .build(); LogEvent result = policy.rewrite(event); assertNotSame(event, result); assertEquals(Level.WARN, result.getLevel()); assertEquals("test.logger.sublogger", result.getLoggerName()); assertEquals("test error message", result.getMessage().getFormattedMessage());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 11.9K bytes - Viewed (0) -
tests/associations_has_many_test.go
}); err != nil { t.Errorf("failed to replace item content, got error: %v", err) } if count := tx.Model(&item).Association("Contents").Count(); count != 3 { t.Errorf("expected %d contents, got %d", 3, count) } var contents []ItemContent if err := tx.Find(&contents).Error; err != nil { t.Errorf("failed to find contents, got error: %v", err) } if len(contents) != 3 {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
tests/main_test.go
if DB.Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil { t.Errorf("Should got error with invalid SQL") } if DB.Model(&User{}).Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil { t.Errorf("Should got error with invalid SQL") } if DB.Where("sdsd.zaaa = ?", "sd;;;aa").Find(&User{}).Error == nil { t.Errorf("Should got error with invalid SQL") } var count1, count2 int64
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Mar 24 01:31:58 UTC 2022 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcException.java
} /** The DCERPC error code */ private int error; /** The root cause exception */ private Throwable rootCause; DcerpcException(final int error) { super(getMessageByDcerpcError(error)); this.error = error; } /** * Constructs a DcerpcException with the specified message * * @param msg the error message */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
tests/associations_has_one_test.go
user := User{Name: "jinzhu", Account: Account{Number: "1"}} if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } if err := DB.Model(&user).Association("Languages").Replace(Account{Number: "2"}); err == nil { t.Error("expected association error to be not nil") }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
tests/transaction_test.go
t.Fatalf("Transaction return error will equal the block returns error") } if err := DB.First(&User{}, "name = ?", "transaction-block").Error; err == nil { t.Fatalf("Should not find record after rollback") } // commit DB.Transaction(func(tx *gorm.DB) error { user := *GetUser("transaction-block-2", Config{}) if err := tx.Save(&user).Error; err != nil { t.Fatalf("No error should raise") }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 13.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
DataStoreException withIOException = new DataStoreException("IO Error", new java.io.IOException("File not found")); DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value")); DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error")); assertTrue(withIOException.getCause() instanceof java.io.IOException);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0)