Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,050 for startIdx (0.24 sec)

  1. cmd/kubeadm/app/apis/kubeadm/argument.go

    // startIdx defines where the iteration starts. If startIdx is a negative
    // value or larger than the size of the argument slice the iteration
    // will start from the last element.
    func GetArgValue(args []Arg, name string, startIdx int) (string, int) {
    	if startIdx < 0 || startIdx > len(args)-1 {
    		startIdx = len(args) - 1
    	}
    	for i := startIdx; i >= 0; i-- {
    		arg := args[i]
    		if arg.Name == name {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 10:27:05 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/apis/kubeadm/argument_test.go

    		args          []Arg
    		name          string
    		expectedValue string
    		startIdx      int
    		expectedIdx   int
    	}{
    		{
    			testName:      "argument exists with non-empty value",
    			args:          []Arg{{Name: "a", Value: "a1"}, {Name: "b", Value: "b1"}, {Name: "c", Value: "c1"}},
    			name:          "b",
    			expectedValue: "b1",
    			expectedIdx:   1,
    			startIdx:      -1,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 10:27:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ResultAssertion.java

         * being already present in that collection.
         * <p>
         * A match means that the first n lines starting at {@code startIdx} match the lines of the
         * expected deprecation warning.  If there are not n lines starting at {@code startIdx} left in
         * the list of lines, then no match is made.
         * <p>
         * As a second side-effect, the last matched deprecation warning is stored in the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. src/internal/trace/traceviewer/emitter.go

    	Flush              func()
    }
    
    // ViewerDataTraceConsumer returns a TraceConsumer that writes to w. The
    // startIdx and endIdx are used for splitting large traces. They refer to
    // indexes in the traceEvents output array, not the events in the trace input.
    func ViewerDataTraceConsumer(w io.Writer, startIdx, endIdx int64) TraceConsumer {
    	allFrames := make(map[string]format.Frame)
    	requiredFrames := make(map[string]format.Frame)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. src/slices/slices.go

    		uintptr(unsafe.Pointer(&b[0])) <= uintptr(unsafe.Pointer(&a[len(a)-1]))+(elemSize-1)
    }
    
    // startIdx returns the index in haystack where the needle starts.
    // prerequisite: the needle must be aliased entirely inside the haystack.
    func startIdx[E any](haystack, needle []E) int {
    	p := &needle[0]
    	for i := range haystack {
    		if p == &haystack[i] {
    			return i
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/debug/dwarf/entry.go

    			var err error
    			base, err = d.debugAddr(u, uint64(addrBase), baseIdx)
    			if err != nil {
    				return nil, err
    			}
    
    		case rleStartxEndx:
    			startIdx := buf.uint()
    			endIdx := buf.uint()
    
    			start, err := d.debugAddr(u, uint64(addrBase), startIdx)
    			if err != nil {
    				return nil, err
    			}
    			end, err := d.debugAddr(u, uint64(addrBase), endIdx)
    			if err != nil {
    				return nil, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 30.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            executor.schedule(action3, 0, TimeUnit.SECONDS)
            thread.blockUntil.started3
    
            then:
            instant.started3 > instant.completed1
            instant.started3 > instant.started2
        }
    
    
        def stopBlocksUntilAllScheduledRunningJobsAreCompleted() {
            given:
            def action1 = {
                instant.started1
                thread.blockUntil.willStop
                thread.block()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

            given:
            expectEvent("started1")
            expectEvent("started2")
            buildFile << """
                task block {
                    def buildNum = providers.gradleProperty("buildNum")
                    doLast {
                        new URL("${getUrl('started')}\${buildNum.get()}").text
    
                        // Block indefinitely for the daemon to appear busy
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessorTest.groovy

            1 * processor.started({ it.id == 2 && it.name == 'Gradle test' }, _)
            1 * processor.started({ it.name == 'ok' && it.className == ATestNGClassWithManyMethods.name }, { it.parentId == 2 })
            1 * processor.started({ it.name == 'ok2' && it.className == ATestNGClassWithManyMethods.name }, { it.parentId == 2 })
            0 * processor.started(_, _)
        }
    
        void "executes no tests if none of the included test methods match"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/progress/DefaultProgressLoggerFactoryTest.groovy

            def parentId
    
            when:
            parent.started()
            sibling.started()
            child.started()
    
            then:
            1 * progressListener.started(!null) >> { ProgressStartEvent event ->
                assert event.description == "parent"
                parentId = event.progressOperationId
            }
            1 * progressListener.started(!null) >> { ProgressStartEvent event ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top