Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,525 for ONCE (0.03 sec)

  1. pkg/test/util.go

    	"go.uber.org/atomic"
    )
    
    // SetForTest sets a variable for the duration of a test, then resets it once the test is complete.
    func SetForTest[T any](t Failer, vv *T, v T) {
    	old := *vv
    	*vv = v
    	t.Cleanup(func() {
    		*vv = old
    	})
    }
    
    // SetEnvForTest sets an environment variable for the duration of a test, then resets it once the test is complete.
    func SetEnvForTest(t Failer, k, v string) {
    	old, oldset := os.LookupEnv(k)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 01:20:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. pkg/proxy/winkernel/hns_test.go

    	epIpAddressRemote = "192.168.2.3"
    	epPaAddress       = "10.0.0.3"
    	protocol          = 6
    	internalPort      = 80
    	externalPort      = 32440
    )
    
    func TestGetNetworkByName(t *testing.T) {
    	// TODO: remove skip once the test has been fixed.
    	t.Skip("Skipping failing test on Windows.")
    	hns := hns{hcn: newHcnImpl()}
    	Network := mustTestNetwork(t)
    
    	network, err := hns.getNetworkByName(Network.Name)
    	if err != nil {
    		t.Error(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. architecture/build-state-model.md

    ### Build session state
    
    A "build session" represents a single invocation of Gradle, for example when you run `gradlew build`.
    A session runs the build one or more times.
    For example, when continuous build is enabled, the session may run the build many times, but when it is disabled, the session will run the build once only.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 13:39:49 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	"strconv"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unicode"
    )
    
    var overcommit struct {
    	sync.Once
    	value int
    	err   error
    }
    
    // requireOvercommit skips t if the kernel does not allow overcommit.
    func requireOvercommit(t *testing.T) {
    	t.Helper()
    
    	overcommit.Once.Do(func() {
    		var out []byte
    		out, overcommit.err = os.ReadFile("/proc/sys/vm/overcommit_memory")
    		if overcommit.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/aliases/aliases.go

    // [Enabled], which computes the effective value of
    // GODEBUG=gotypesalias=... by invoking the type checker. The Enabled
    // function is expensive and should be called once per task (e.g.
    // package import), not once per call to NewAlias.
    func NewAlias(enabled bool, pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName {
    	if enabled {
    		tname := types.NewTypeName(pos, pkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/BUILD

    # Experimental filesystem C APIs for TensorFlow.
    # Will be moved in proper place once all filesystems are converted to the
    # modular framework.
    load("//tensorflow:tensorflow.bzl", "tf_cc_test")
    load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
    
    package(
        # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
        licenses = ["notice"],
    )
    
    # This is only for plugins
    cc_library(
        name = "filesystem_interface",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. cmd/prepare-storage.go

    		}
    		// Once is set and we are here means error was already
    		// printed once.
    		if once {
    			return
    		}
    		// once not set, check if same error occurred 3 times in
    		// a row, then make sure we print it to call attention.
    		if m[err.Error()] > 2 {
    			peersLogAlwaysIf(ctx, fmt.Errorf("Following error has been printed %d times.. %w", m[err.Error()], err))
    			// Reduce the count to introduce further delay in printing
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun May 19 08:06:49 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/internal/goroot/gc.go

    		return false
    	case "gccgo":
    		return gccgoSearch.isStandard(path)
    	default:
    		panic("unknown compiler " + compiler)
    	}
    }
    
    // gccgoSearch holds the gccgo search directories.
    type gccgoDirs struct {
    	once sync.Once
    	dirs []string
    }
    
    // gccgoSearch is used to check whether a gccgo package exists in the
    // standard library.
    var gccgoSearch gccgoDirs
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

    // than once for the same mux will result in a panic.
    func InstallLivezHandler(mux mux, checks ...HealthChecker) {
    	InstallPathHandler(mux, "/livez", checks...)
    }
    
    // InstallPathHandler registers handlers for health checking on
    // a specific path to mux. *All handlers* for the path must be
    // specified in exactly one call to InstallPathHandler. Calling
    // InstallPathHandler more than once for the same path and mux will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. src/internal/godebug/godebug.go

    	"unsafe"
    	_ "unsafe" // go:linkname
    )
    
    // A Setting is a single setting in the $GODEBUG environment variable.
    type Setting struct {
    	name string
    	once sync.Once
    	*setting
    }
    
    type setting struct {
    	value          atomic.Pointer[value]
    	nonDefaultOnce sync.Once
    	nonDefault     atomic.Uint64
    	info           *godebugs.Info
    }
    
    type value struct {
    	text   string
    	bisect *bisect.Matcher
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top