Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for newTestDB (0.43 seconds)

  1. tests/chainable_api_test.go

    func (d testDialector) QuoteTo(writer clause.Writer, s string)         { writer.WriteString(s) }
    func (d testDialector) Explain(sql string, vars ...interface{}) string { return sql }
    
    // newTestDB returns a minimal *DB with an initialized Statement suitable for unit tests
    func newTestDB() *gorm.DB {
    	d := testDialector{}
    	cfg := &gorm.Config{Dialector: d}
    	db := &gorm.DB{Config: cfg}
    	stmt := &gorm.Statement{
    		DB:       db,
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Jan 31 08:39:40 GMT 2026
    - 3.9K bytes
    - Click Count (0)
Back to Top