Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,710 for pselect (0.62 sec)

  1. tests/group_by_test.go

    	var total int
    	if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("name").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby" || total != 60 {
    		t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. pkg/filewatcher/fakefilewatcher_test.go

    		if gotRemove != file {
    			t.Fatalf("Remove() failed: got %v want %v", gotRemove, file)
    		}
    		select {
    		case <-addedChan:
    			t.Fatal("Remove() failed: callback invoked with added=false")
    		default:
    		}
    
    		wantEvent = fsnotify.Event{Name: file, Op: fsnotify.Write}
    		fakeWatcher.InjectEvent(file, wantEvent)
    		select {
    		case gotEvent := <-watcher.Events(file):
    			t.Fatalf("Unexpected Events() after Remove(): got %v", gotEvent)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/ExternalModuleDependencyVariantSpec.java

    /**
     * The specification of a dependency variant. Some dependencies can be fined tuned
     * to select a particular variant. For example, one might want to select the test
     * fixtures of a target component, or a specific classifier.
     *
     * @since 6.8
     */
    public interface ExternalModuleDependencyVariantSpec {
        /**
         * Configures the dependency to select the "platform" variant.
         */
        void platform();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 27 23:38:43 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. clause/benchmarks_test.go

    		clauses := []clause.Interface{clause.Select{}, clause.From{}, clause.Where{Exprs: []clause.Expression{clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}, clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})}}}
    
    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE")
    		_ = stmt.SQL.String()
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go

    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    
    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect6(nfd, r, w, e, ts, nil)
    }
    
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. test/codegen/condmove.go

    	// wasm:"Select"
    	return x
    }
    
    func cmov32bit(x, y uint32) uint32 {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVL(HI|CS)"
    	// arm64:"CSNEG\t(LS|HS)"
    	// ppc64x:"ISEL\t[$]1"
    	// wasm:"Select"
    	return x
    }
    
    func cmov16bit(x, y uint16) uint16 {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVW(HI|CS)"
    	// arm64:"CSNEG\t(LS|HS)"
    	// ppc64x:"ISEL\t[$][01]"
    	// wasm:"Select"
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. src/runtime/race/testdata/chan_test.go

    	aux := make(chan bool)
    	data := 0
    	_ = data
    	go func() {
    		select {
    		case mtx <- struct{}{}:
    		case <-aux:
    		}
    		data = 42
    		select {
    		case <-mtx:
    		case <-aux:
    		}
    		done <- struct{}{}
    	}()
    	select {
    	case mtx <- struct{}{}:
    	case <-aux:
    	}
    	data = 43
    	select {
    	case <-mtx:
    	case <-aux:
    	}
    	<-done
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/DependencyGraphBuilderTest.groovy

            then:
            1 * conflictResolver.select(!null) >> { args ->
                def details = args[0]
                Collection<ComponentResolutionState> candidates = details.candidates
                assert candidates*.version == ['1.2', '1.1']
                details.select(candidates.find { it.version == '1.2' })
            }
            1 * conflictResolver.select(!null) >> { args ->
                def details = args[0]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/NonInteractiveUserInputHandlerTest.groovy

        }
    
        def "always returns default for select question"() {
            expect:
            userInputHandler.selectOption('Select count', [1, 2, 3], 2) == 2
        }
    
        def "returns first option when no default"() {
            expect:
            userInputHandler.choice('Select count', [1, 2, 3])
                .ask() == 1
        }
    
        def "returns default option for choice"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/NoBuildDependenciesArtifactSetTest.groovy

            def target = Stub(ArtifactSet)
            def selector = Stub(ArtifactVariantSelector)
    
            when:
            target.select(_, _) >> ResolvedArtifactSet.EMPTY
    
            then:
            new NoBuildDependenciesArtifactSet(target).select(selector, Mock(ArtifactSelectionSpec)) == ResolvedArtifactSet.EMPTY
        }
    
        def "creates wrapper for non-empty set of selected artifacts"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top