Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for expectKind (0.27 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/LightTreeUtil.kt

    
    internal
    val LighterASTNode.isUseful: Boolean
        get() = !(COMMENTS.contains(tokenType) || tokenType == WHITE_SPACE || tokenType == SEMICOLON)
    
    
    internal
    fun LighterASTNode.expectKind(expected: IElementType) {
        check(isKind(expected))
    }
    
    
    internal
    fun List<LighterASTNode>.expectSingleOfKind(expected: IElementType): LighterASTNode =
        this.single { it.isKind(expected) }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher_test.go

    		},
    		Status: corev1.PodStatus{
    			PodIP: fakePodIP,
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/informers_test.go

    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		"",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. src/os/exec_unix.go

    	runtime.SetFinalizer(p, nil)
    	return nil
    }
    
    func findProcess(pid int) (p *Process, err error) {
    	h, err := pidfdFind(pid)
    	if err == ErrProcessDone {
    		// We can't return an error here since users are not expecting
    		// it. Instead, return a process with a "done" state already
    		// and let a subsequent Signal or Wait call catch that.
    		return newDoneProcess(pid), nil
    	} else if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    			key := computePodKey(tt.inputObj)
    			if err := store.Get(ctx, key, storage.GetOptions{}, out); !storage.IsNotFound(err) {
    				t.Fatalf("expecting empty result on key %s, got %v", key, err)
    			}
    
    			err := store.Create(ctx, key, tt.inputObj, out, 0)
    			if !errors.Is(err, tt.expectedError) {
    				t.Errorf("expecting error %v, but get: %v", tt.expectedError, err)
    			}
    			if err != nil {
    				return
    			}
    			// basic tests of the output
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    	if err != nil {
    		return err
    	}
    
    	// Version in policy must not be empty
    	if sessionPolicy.Version == "" {
    		return errors.New("Version cannot be empty expecting '2012-10-17'")
    	}
    
    	policyBuf, err := json.Marshal(sessionPolicy)
    	if err != nil {
    		return err
    	}
    
    	// https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modcmd/tidy.go

    func (f *goVersionFlag) Get() any       { return f.v }
    
    func (f *goVersionFlag) Set(s string) error {
    	if s != "" {
    		latest := gover.Local()
    		if !modfile.GoVersionRE.MatchString(s) {
    			return fmt.Errorf("expecting a Go version like %q", latest)
    		}
    		if gover.Compare(s, latest) > 0 {
    			return fmt.Errorf("maximum supported Go version is %s", latest)
    		}
    	}
    
    	f.v = s
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    		if err != nil {
    			t.Fatalf("etcdClient.KV.Get failed: %v", err)
    		}
    		if len(getResp.Kvs) == 0 {
    			t.Fatalf("expecting non empty result on key: %s", key)
    		}
    		decoded, err := runtime.Decode(codec, getResp.Kvs[0].Value[len(defaultTestPrefix):])
    		if err != nil {
    			t.Fatalf("expecting successful decode of object from %v\n%v", err, string(getResp.Kvs[0].Value))
    		}
    		obj := decoded.(*example.Pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/WorkNodeCodec.kt

                        node.addShouldSuccessor(it)
                    }
                    readSuccessorReferences(nodesById) {
                        require(it is TaskNode) {
                            "Expecting a TaskNode as a must successor of `$node`, got `$it`."
                        }
                        node.addMustSuccessor(it)
                    }
                    readSuccessorReferences(nodesById) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCollectionCodec.kt

            if (source is TransformedArtifactSet) {
                // Should only be contained in a ResolutionBackedFileCollection
                throw IllegalArgumentException("Found artifact set $source but was not expecting an artifact set")
            } else {
                FileCollectionStructureVisitor.VisitType.Visit
            }
    
        override fun visitCollection(source: FileCollectionInternal.Source, contents: MutableIterable<File>) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top