Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testUpdates (0.1 seconds)

  1. tests/update_test.go

    	}
    
    	if rowsAffected := DB.Model(users).Where("age > 0").Update("name", "jinzhu").RowsAffected; rowsAffected != 3 {
    		t.Errorf("should only update one record, but got %v", rowsAffected)
    	}
    }
    
    func TestUpdates(t *testing.T) {
    	users := []*User{
    		GetUser("updates_01", Config{}),
    		GetUser("updates_02", Config{}),
    	}
    
    	DB.Create(&users)
    	lastUpdatedAt := users[0].UpdatedAt
    
    	// update with map
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            assertNotNull(raw);
            assertEquals(3, (Object) raw.size());
            assertEquals("fruits =                            apple, banana, pear, ", raw.get(0));
        }
    
        @Test
        public void testUpdate() throws Exception {
            MavenProperties p1 = new MavenProperties();
            p1.put(
                    "fruits",
                    List.of("#", "# List of fruits", "#"),
                    List.of(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 09 14:29:03 GMT 2026
    - 16.3K bytes
    - Click Count (0)
Back to Top