Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCallbacksRemove (0.07 sec)

  1. tests/callbacks_test.go

    	}
    
    	createCallback.Remove("c1")
    	if cb := createCallback.Get("c2"); cb != nil {
    		t.Errorf("callbacks test failed. got: %p, want: nil", cb)
    	}
    }
    
    func TestCallbacksRemove(t *testing.T) {
    	db, _ := gorm.Open(nil, nil)
    	createCallback := db.Callback().Create()
    
    	createCallback.Before("*").Register("c1", c1)
    	createCallback.After("*").Register("c2", c2)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top