Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Age (0.01 sec)

  1. tests/query_test.go

    	if res.Name != "" {
    		t.Errorf("Expected res.Name to be empty, but got %s", res.Name)
    	}
    	if res.Age != user.Age {
    		t.Errorf("Expected res.Age to be %d, but got %d", user.Age, res.Age)
    	}
    }
    
    func TestPluckWithSelect(t *testing.T) {
    	users := []User{
    		{Name: "pluck_with_select_1", Age: 25},
    		{Name: "pluck_with_select_2", Age: 26},
    	}
    
    	DB.Create(&users)
    
    	var userAges []int
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K 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)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 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()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 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
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K 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()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
Back to top