Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestOffset (0.05 sec)

  1. tests/query_test.go

    	if len(users1) != 3 || len(users2) != 5 || len(users3) <= 5 {
    		t.Errorf("Limit should works, users1 %v users2 %v users3 %v", len(users1), len(users2), len(users3))
    	}
    }
    
    func TestOffset(t *testing.T) {
    	for i := 0; i < 20; i++ {
    		DB.Save(&User{Name: fmt.Sprintf("OffsetUser%v", i)})
    	}
    	var users1, users2, users3, users4 []User
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top