Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for idempotent (0.14 sec)

  1. android/guava/src/com/google/common/collect/Range.java

       *
       * <p>The intersection exists if and only if the two ranges are {@linkplain #isConnected
       * connected}.
       *
       * <p>The intersection operation is commutative, associative and idempotent, and its identity
       * element is {@link Range#all}).
       *
       * @throws IllegalArgumentException if {@code isConnected(connectedRange)} is {@code false}
       */
      public Range<C> intersection(Range<C> connectedRange) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    		time := MicroTime{}
    		if err := time.Unmarshal(data); err != nil {
    			t.Fatalf("Failed to unmarshal output: '%v': %v", input, err)
    		}
    		if !reflect.DeepEqual(input, time) {
    			t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time)
    		}
    	}
    }
    
    func TestMicroTimeEqual(t *testing.T) {
    	t1 := NewMicroTime(time.Now())
    	cases := []struct {
    		name   string
    		x      *MicroTime
    		y      *MicroTime
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser_test.go

    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    )
    
    var (
    	fast   = flag.Bool("fast", false, "parse package files in parallel")
    	verify = flag.Bool("verify", false, "verify idempotent printing")
    	src_   = flag.String("src", "parser.go", "source file to parse")
    	skip   = flag.String("skip", "", "files matching this regular expression are skipped by TestStdLib")
    )
    
    func TestParse(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/controller/repair.go

    // * Migrates old versions of Kubernetes services into the atomic ipallocator model automatically
    //
    // Can be run at infrequent intervals, and is best performed on startup of the master.
    // Is level driven and idempotent - all valid ClusterIPs will be updated into the ipallocator
    // map at the end of a single execution loop if no race is encountered.
    //
    // TODO: allocate new IPs if necessary
    // TODO: perform repair?
    type Repair struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/memorymanager/policy_static.go

    	if err := p.validateState(s); err != nil {
    		klog.ErrorS(err, "Invalid state, please drain node and remove policy state file")
    		return err
    	}
    	return nil
    }
    
    // Allocate call is idempotent
    func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) {
    	// allocate the memory only for guaranteed pods
    	if v1qos.GetPodQOS(pod) != v1.PodQOSGuaranteed {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  6. platforms/software/signing/src/integTest/groovy/org/gradle/plugins/signing/SigningPublicationsIntegrationSpec.groovy

        }
    
        @Issue([
            "https://github.com/gradle/gradle/issues/21857",
            "https://github.com/gradle/gradle/issues/22375"
        ])
        def "sign publication should be idempotent"() {
            given:
            buildFile << """
                apply plugin: 'maven-publish'
                ${keyInfo.addAsPropertiesScript()}
    
                publishing {
                    publications {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:32 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. pkg/kube/krt/README.md

    ### Transformation constraints
    
    In order for the framework to properly handle dependencies and events, transformation functions must adhere by a few properties.
    
    Basically, Transformations must be stateless and idempotent.
    * Any querying of other `Collection`s _must_ be done through `krt.Fetch`.
    * Querying other data stores that may change is not permitted.
    * Querying external state (e.g. making HTTP calls) is not permitted.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/volumebinding/volume_binding.go

    		return framework.AsStatus(err)
    	}
    	logger.V(5).Info("Success binding volumes for pod", "pod", klog.KObj(pod))
    	return nil
    }
    
    // Unreserve clears assumed PV and PVC cache.
    // It's idempotent, and does nothing if no cache found for the given pod.
    func (pl *VolumeBinding) Unreserve(ctx context.Context, cs *framework.CycleState, pod *v1.Pod, nodeName string) {
    	s, err := getStateData(cs)
    	if err != nil {
    		return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/go/token/position_test.go

    	checkPos(bpos3, "fileB:1:4")
    	checkNumFiles(2)
    
    	// After removal, queries on fileA fail.
    	fset.RemoveFile(a)
    	checkPos(apos3, "-")
    	checkPos(bpos3, "fileB:1:4")
    	checkNumFiles(1)
    
    	// idempotent / no effect
    	fset.RemoveFile(a)
    	checkPos(apos3, "-")
    	checkPos(bpos3, "fileB:1:4")
    	checkNumFiles(1)
    }
    
    func TestFileAddLineColumnInfo(t *testing.T) {
    	const (
    		filename = "test.go"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         * `ID > lastGoodStreamId` on a new connection.  In- flight streams with
         * `ID <= lastGoodStreamId` can only be replayed on a new connection if they are idempotent.
         *
         * @param lastGoodStreamId the last stream ID the peer processed before sending this message. If
         *     [lastGoodStreamId] is zero, the peer processed no frames.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top