Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 8,288 for makeN (0.06 sec)

  1. pkg/kubelet/config/config.go

    		return false
    	}
    	return true
    }
    
    // checkAndUpdatePod updates existing, and:
    //   - if ref makes a meaningful change, returns needUpdate=true
    //   - if ref makes a meaningful change, and this change is graceful deletion, returns needGracefulDelete=true
    //   - if ref makes no meaningful change, but changes the pod status, returns needReconcile=true
    //   - else return all false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. test/fixedbugs/issue24491a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This test makes sure unsafe-uintptr arguments are handled correctly.
    
    package main
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    var done = make(chan bool, 1)
    
    func setup() unsafe.Pointer {
    	s := "ok"
    	runtime.SetFinalizer(&s, func(p *string) { *p = "FAIL" })
    	return unsafe.Pointer(&s)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:58 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. common/scripts/tracing.sh

    #
    # The original version of this file is located in the https://github.com/istio/common-files repo.
    # If you're looking at this file in a different repo and want to make a change, please go to the
    # common-files repo, make the change there and check it in. Then come back to this repo and run
    # "make update-common".
    
    # Copyright Istio Authors
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 28 15:25:47 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. test/fixedbugs/issue5373.go

    package main
    
    import (
    	"fmt"
    	"os"
    )
    
    func check(n int) {
    	// When n == 0, i is untouched by the range loop.
    	// Picking an initial value of -1 for i makes the
    	// "want" calculation below correct in all cases.
    	i := -1
    	s := make([]byte, n)
    	for i = range s {
    		s[i] = 0
    	}
    	if want := n - 1; i != want {
    		fmt.Printf("index after range with side-effect = %d want %d\n", i, want)
    		os.Exit(1)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  5. test/typeparam/chansimp.dir/a.go

    // at a time. This is implemented using channels rather than a mutex.
    type Exclusive[Val any] struct {
    	c chan Val
    }
    
    // MakeExclusive makes an initialized exclusive value.
    func MakeExclusive[Val any](initial Val) *Exclusive[Val] {
    	r := &Exclusive[Val]{
    		c: make(chan Val, 1),
    	}
    	r.c <- initial
    	return r
    }
    
    // Acquire acquires the exclusive value for private use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  6. pkg/apis/core/validation/events.go

    		if event.Series.LastObservedTime.Time == zeroTime {
    			allErrs = append(allErrs, field.Required(field.NewPath("series.lastObservedTime"), ""))
    		}
    	}
    	return allErrs
    }
    
    // legacyValidateEvent makes sure that the event makes sense.
    func legacyValidateEvent(event *core.Event, requestVersion schema.GroupVersion) field.ErrorList {
    	allErrs := field.ErrorList{}
    	// Because go
    	zeroTime := time.Time{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 01 19:47:37 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    		var fr fileReader
    		switch maker := v.maker.(type) {
    		case makeReg:
    			r := testNonEmptyReader{strings.NewReader(maker.str)}
    			fr = &regFileReader{r, maker.size}
    		case makeSparse:
    			if !validateSparseEntries(maker.spd, maker.size) {
    				t.Fatalf("invalid sparse map: %v", maker.spd)
    			}
    			sph := invertSparseEntries(maker.spd, maker.size)
    			r := testNonEmptyReader{strings.NewReader(maker.makeReg.str)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  8. pilot/cmd/pilot-agent/app/request.go

    // which interprets the output literally as json document.
    var (
    	requestCmd = &cobra.Command{
    		Use:   "request <method> <path> [<body>]",
    		Short: "Makes an HTTP request to the Envoy admin API",
    		Args:  cobra.MinimumNArgs(2),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    			if !allowedPorts.Contains(debugRequestPort) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:05 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/namedReturn_test.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This test makes sure that naming named
    // return variables in a return statement works.
    // See issue #14904.
    
    package main
    
    import (
    	"runtime"
    	"testing"
    )
    
    // Our heap-allocated object that will be GC'd incorrectly.
    // Note that we always check the second word because that's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/internal/bootstrap_test/overlaydir_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bootstrap_test
    
    import (
    	"io"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    // overlayDir makes a minimal-overhead copy of srcRoot in which new files may be added.
    //
    // TODO: Once we no longer need to support the misc module in GOPATH mode,
    // factor this function out into a package to reduce duplication.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:35:05 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top