Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for valides (0.15 sec)

  1. tests/hooks_test.go

    	}
    
    	DB.Where("Code = ?", "unique_code").First(&p)
    	if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 1, 0, 1, 0, 0, 0, 0, 1}) {
    		t.Fatalf("After callbacks values are not saved, %v", p.GetCallTimes())
    	}
    
    	p.Price = 200
    	DB.Save(&p)
    	if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 2, 1, 1, 1, 1, 0, 0, 1}) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
Back to top