Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 539 for isSelect (0.15 sec)

  1. 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)
  2. tests/scan_test.go

    		Name string
    		Age  int
    	}
    
    	var res result
    	DB.Table("users").Select("id, name, age").Where("id = ?", user3.ID).Scan(&res)
    	if res.ID != user3.ID || res.Name != user3.Name || res.Age != int(user3.Age) {
    		t.Fatalf("Scan into struct should work, got %#v, should %#v", res, user3)
    	}
    
    	var resPointer *result
    	if err := DB.Table("users").Select("id, name, age").Where("id = ?", user3.ID).Scan(&resPointer).Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. hack/update-kustomize.sh

    LATEST_KYAML=$(echo "${PUBLISHED_RELEASES}" | jq -r '[ .[] | select(.tag_name | startswith("kyaml/v")) ] | sort_by(.published_at) | last | .tag_name | scan("\/(v[\\d.]+)") | .[0]')
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:40:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

        private void addTOC(Document document) {
            Element tocSection = document.body().select("section.topic").first().before("<section class='table-of-contents'/>").previousElementSibling();
            tocSection.append("<h2>Table Of Contents</h2>");
            Element toc = tocSection.append("<ul class='toc'/>").children().last();
    
            Elements h23elements = document.select("h2,h3");
            for (Element h23element: h23elements) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 05:15:02 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/capabilities/CapabilitiesConflictResolutionIntegrationTest.groovy

                    module('org:testB:1.0')
                }
            }
    
            where:
            rule << [
                "select(candidates.find { it.id.module == 'testB'})",
                "select('org:testB:1.0')",
                "select('org:testB:1.1')", // we are lenient wrt to the version number
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 07:37:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/testprog/stacks.go

    	// It is impossible to ensure that a goroutine has actually blocked
    	// on a channel, in a select or otherwise. So we kick off goroutines
    	// that need to block first in the hope that while we are executing
    	// the rest of the test, they will block.
    	go func() { // func1
    		select {}
    	}()
    	go func() { // func2
    		var c chan int
    		c <- 0
    	}()
    	go func() { // func3
    		var c chan int
    		<-c
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/internal/trace/oldtrace.go

    	addBuiltin(sChanSend, "chan send")
    	addBuiltin(sChanRecv, "chan receive")
    	addBuiltin(sNetwork, "network")
    	addBuiltin(sSync, "sync")
    	addBuiltin(sSyncCond, "sync.(*Cond).Wait")
    	addBuiltin(sSelect, "select")
    	addBuiltin(sEmpty, "")
    	addBuiltin(sMarkAssistWait, "GC mark assist wait for work")
    	addBuiltin(sSTWUnknown, "")
    	addBuiltin(sSTWGCMarkTermination, "GC mark termination")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/time/tick_test.go

    			drain1()
    		}
    	}
    	noTick := func() {
    		t.Helper()
    		select {
    		default:
    		case <-C:
    			t.Errorf("extra tick")
    		}
    	}
    	assertTick := func() {
    		t.Helper()
    		select {
    		default:
    		case <-C:
    			return
    		}
    		for range tries {
    			Sleep(sched)
    			select {
    			default:
    			case <-C:
    				return
    			}
    		}
    		t.Errorf("missing tick")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. src/database/sql/sql_test.go

    	expectPanic("Query Query", func() { db.Query("PANIC|Query|SELECT|people|age,name|") })
    	expectPanic("Query NumInput", func() { db.Query("PANIC|NumInput|SELECT|people|age,name|") })
    	expectPanic("Query Close", func() {
    		rows, err := db.Query("PANIC|Close|SELECT|people|age,name|")
    		if err != nil {
    			t.Fatal(err)
    		}
    		rows.Close()
    	})
    	db.Query("PANIC|Exec|SELECT|people|age,name|") // should run successfully: Query does not call Exec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/DefaultUserInputHandlerTest.groovy

            input == true
        }
    
        def "can ask select question"() {
            when:
            def input = ask { it.selectOption("select option", [11, 12, 13], 12) }
    
            then:
            1 * outputEventBroadcaster.onOutput(_ as UserInputRequestEvent)
            1 * outputEventBroadcaster.onOutput(_) >> { SelectOptionPromptEvent event ->
                assert event.question == "select option"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top