Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for age (0.15 sec)

  1. tests/query_test.go

    func TestLimit(t *testing.T) {
    	users := []User{
    		{Name: "LimitUser1", Age: 1},
    		{Name: "LimitUser2", Age: 10},
    		{Name: "LimitUser3", Age: 20},
    		{Name: "LimitUser4", Age: 10},
    		{Name: "LimitUser5", Age: 20},
    		{Name: "LimitUser6", Age: 20},
    	}
    
    	DB.Create(&users)
    
    	var users1, users2, users3 []User
    	DB.Order("age desc").Limit(3).Find(&users1).Limit(5).Find(&users2).Limit(-1).Find(&users3)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    						columnType.Name(), length, 100, columnType)
    				}
    			case "age":
    				if v, ok := columnType.DefaultValue(); !ok || v != "18" {
    					t.Fatalf("column age default value should be correct, name: %v, column: %#v", columnType.Name(),
    						columnType)
    				}
    				if v, ok := columnType.Comment(); !ok || v != "my age" {
    					t.Fatalf("column age comment should be correct, name: %v, column: %#v", columnType.Name(),
    						columnType)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .cache(cache)
            .build()
        server.enqueue(
          MockResponse(
            headers = headersOf("cache-control", "max-age=60"),
            body = "ABCD",
          ),
        )
        server.enqueue(
          MockResponse(
            headers = headersOf("cache-control", "max-age=60"),
            body = "EFGH",
          ),
        )
        val call1 = client.newCall(Request(server.url("/")))
        val response1 = call1.execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle_test.go

    			objectModTime:   time.Now().UTC().Add(-10 * 24 * time.Hour), // Created 10 days ago
    			hasManyVersions: true,
    			expectedAction:  DeleteAllVersionsAction,
    		},
    		// TransitionAction applies since object doesn't meet the age criteria for DeleteAllVersions
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun cacheHit() {
        enableCache()
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .addHeader("cache-control: public, max-age=300")
            .build(),
        )
        var call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        var response = call.execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
Back to top