Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for main (0.32 sec)

  1. tests/main_test.go

    Jin <******@****.***> 1648085518 +0800
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  2. tests/count_test.go

    		"(CASE WHEN name=? THEN ? ELSE ? END) as name", "count-1", "main", "other",
    	).Count(&count6).Find(&users).Error; err != nil || count6 != 3 {
    		t.Fatalf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    
    	expects := []User{{Name: "main"}, {Name: "other"}, {Name: "other"}}
    	sort.SliceStable(users, func(i, j int) bool {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
Back to top