Search Options

Results per page
Sort
Preferred Languages
Advance

Results 741 - 750 of 1,093 for Sets (0.02 sec)

  1. tests/helper_test.go

    			}
    		}
    	})
    
    	t.Run("Pets", func(t *testing.T) {
    		if len(user.Pets) != len(expect.Pets) {
    			t.Fatalf("pets should equal, expect: %v, got %v", len(expect.Pets), len(user.Pets))
    		}
    
    		sort.Slice(user.Pets, func(i, j int) bool {
    			return user.Pets[i].ID > user.Pets[j].ID
    		})
    
    		sort.Slice(expect.Pets, func(i, j int) bool {
    			return expect.Pets[i].ID > expect.Pets[j].ID
    		})
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tests/generics_test.go

    			}
    		} else if len(result.Pets) != 5 {
    			t.Fatalf("Preload user %v pets should be 5, but got %+v", result.Name, result.Pets)
    		}
    		for i := 1; i < len(result.Pets); i++ {
    			if result.Pets[i-1].Name < result.Pets[i].Name {
    				t.Fatalf("Preload user %v pets not ordered correctly, last %v, cur %v", result.Name, result.Pets[i-1], result.Pets[i])
    			}
    		}
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  3. tests/create_test.go

    		*GetUser("bulk_5", Config{Account: false, Pets: 0, Toys: 3, Company: true, Manager: false, Team: 1, Languages: 3, Friends: 1}),
    		*GetUser("bulk_6", Config{Account: true, Pets: 4, Toys: 3, Company: false, Manager: true, Team: 1, Languages: 3, Friends: 0}),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. tests/preload_test.go

    	} else {
    		sort.Slice(users2[2].Pets, func(i, j int) bool {
    			return users2[2].Pets[i].ID < users2[2].Pets[j].ID
    		})
    
    		for _, pet := range users2[2].Pets[0:2] {
    			if pet.Toy.Name != "" {
    				t.Errorf("No toy should for user %v's pet %v but got %v", 3, pet.Name, pet.Toy.Name)
    			}
    		}
    
    		CheckPet(t, *users2[2].Pets[2], *users[2].Pets[2])
    	}
    }
    
    func TestPreloadEmptyData(t *testing.T) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java

            super(config, andxResp);
        }
    
        /**
         * Gets the file identifier.
         *
         * @return the fid
         */
        public final int getFid() {
            return this.fid;
        }
    
        /**
         * Gets the file data size.
         *
         * @return the dataSize
         */
        public final int getDataSize() {
            return this.fileDataSize;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/BuilderProblem.java

        @Nonnull
        String getSource();
    
        /**
         * Gets the one-based index of the line containing the problem. The line number should refer to some text file that
         * is given by {@link #getSource()}.
         *
         * @return the one-based index of the line containing the problem or a non-positive value if unknown
         */
        int getLineNumber();
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbTreeHandle.java

         * @return the tree is connected
         */
        boolean isConnected();
    
        /**
         * Gets the server timezone offset in milliseconds
         * @return server timezone offset
         * @throws CIFSException if an error occurs retrieving the timezone offset
         */
        long getServerTimeZoneOffset() throws CIFSException;
    
        /**
         * Gets the OEM domain name reported by the server
         * @return server reported domain name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

        }
    
        /**
         * Gets the new lease state after the break
         * @return the new lease state
         */
        public int getNewLeaseState() {
            return newLeaseState;
        }
    
        /**
         * Gets the reason for the lease break
         * @return the break reason
         */
        public int getBreakReason() {
            return breakReason;
        }
    
        /**
         * Gets the lease flags from the notification
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/SmbNegotiation.java

            this.negoReqBuffer = negoReqBuffer;
            this.negoRespBuffer = negoRespBuffer;
        }
    
        /**
         * Gets the negotiation request.
         *
         * @return the request
         */
        public SmbNegotiationRequest getRequest() {
            return this.request;
        }
    
        /**
         * Gets the negotiation response.
         *
         * @return the response
         */
        public SmbNegotiationResponse getResponse() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. tests/associations_has_one_test.go

    func TestPolymorphicHasOneAssociationForSlice(t *testing.T) {
    	pets := []Pet{
    		{Name: "hasone-1", Toy: Toy{Name: "toy-has-one"}},
    		{Name: "hasone-2", Toy: Toy{}},
    		{Name: "hasone-3", Toy: Toy{Name: "toy-has-one"}},
    	}
    
    	DB.Create(&pets)
    
    	// Count
    	AssertAssociationCount(t, pets, "Toy", 2, "")
    
    	// Find
    	var toys []Toy
    	if DB.Model(&pets).Association("Toy").Find(&toys); len(toys) != 2 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top