- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCallbacksGet (0.32 sec)
-
tests/callbacks_test.go
if ok, msg := assertCallbacks(createCallback, []string{"c5", "c3", "c1", "c2", "c4", "c6"}); !ok { t.Errorf("callbacks tests failed, got %v", msg) } } func TestCallbacksGet(t *testing.T) { db, _ := gorm.Open(nil, nil) createCallback := db.Callback().Create() createCallback.Before("*").Register("c1", c1) if cb := createCallback.Get("c1"); reflect.DeepEqual(cb, c1) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 26 03:33:36 UTC 2024 - 7.2K bytes - Viewed (0)