Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for newPoset (0.46 sec)

  1. src/cmd/compile/internal/ssa/func.go

    	f.Cache.freeSparseMapPos(ss)
    }
    
    // newPoset returns a new poset from the internal cache
    func (f *Func) newPoset() *poset {
    	if len(f.Cache.scrPoset) > 0 {
    		po := f.Cache.scrPoset[len(f.Cache.scrPoset)-1]
    		f.Cache.scrPoset = f.Cache.scrPoset[:len(f.Cache.scrPoset)-1]
    		return po
    	}
    	return newPoset()
    }
    
    // retPoset returns a poset to the internal cache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. tests/embedded_struct_test.go

    	}
    
    	if hnPost.Title != NewPost.Title {
    		t.Errorf("Should find correct value for embedded pointer type")
    	}
    
    	if hnPost.Author.Name != NewPost.Author.Name {
    		t.Errorf("Expected to get Author name %v but got: %v", NewPost.Author.Name, hnPost.Author.Name)
    	}
    
    	if !reflect.DeepEqual(NewPost.Author.Content, hnPost.Author.Content) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. cni/pkg/ipset/ipset.go

    // doesn't support creating `list:set` types yet (is in main branch tho).
    // So this will actually create 2 underlying ipsets, one for v4 and one for v6
    func NewIPSet(name string, v6 bool, deps NetlinkIpsetDeps) (IPSet, error) {
    	var err error
    	set := IPSet{
    		V4Name: fmt.Sprintf(V4Name, name),
    		Deps:   deps,
    		Prefix: name,
    	}
    	err = deps.ipsetIPHashCreate(set.V4Name, false)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. cni/pkg/install/kubeconfig_test.go

    	}
    	// Write out a kubeconfig with one cert
    	result, err = createKubeConfig(newCfg)
    	if err != nil {
    		t.Fatalf("did not expect failure: %v", err)
    	}
    	goldenNewFilepath := "testdata/kubeconfig-newhost"
    	testutils.CompareContent(t, []byte(result.Full), goldenNewFilepath)
    }
    
    func TestCheckNoExistingKubeConfig(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/server.go

    //
    // We will unconditionally flush our set before use here, so it shouldn't matter.
    func createHostsideProbeIpset(isV6 bool) (ipset.IPSet, error) {
    	linDeps := ipset.RealNlDeps()
    	probeSet, err := ipset.NewIPSet(iptables.ProbeIPSet, isV6, linDeps)
    	if err != nil {
    		return probeSet, err
    	}
    	probeSet.Flush()
    	return probeSet, nil
    }
    
    func (s *Server) Start() {
    	log.Info("CNI ambient server starting")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. pkg/registry/core/service/strategy.go

    // and should not be modified by the user.
    func (svcStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate sets contextual defaults and clears fields that are not allowed to be set by end users on creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation.go

    			// but not added.
    			if resourceClaim.DeletionTimestamp != nil || resourceClaim.Status.DeallocationRequested {
    				oldSet := sets.New(oldClaim.Status.ReservedFor...)
    				newSet := sets.New(resourceClaim.Status.ReservedFor...)
    				newItems := newSet.Difference(oldSet)
    				if len(newItems) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    throw new RuntimeException(e);
                }
            }
    
            private <T> Set<T> concat(Set<T> set, T elem) {
                Set<T> newSet = new HashSet<>(set);
                newSet.add(elem);
                return newSet;
            }
    
            @SuppressWarnings("checkstyle:parameternumber")
            private InterimResult build(
                    Map<File, MavenProject> projectIndex,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 57.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_node_status.go

    		newCMAAnnotation, newSet = node.Annotations[volutil.ControllerManagedAttachAnnotation]
    	)
    
    	if newCMAAnnotation == existingCMAAnnotation {
    		return false
    	}
    
    	// If the just-constructed node and the existing node do
    	// not have the same value, update the existing node with
    	// the correct value of the annotation.
    	if !newSet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  10. pkg/test/framework/testcontext.go

    	}
    	return tmp
    }
    
    func (c *testContext) newChildContext(test *testImpl) *testContext {
    	return newTestContext(test, test.goTest, c.suite, c.scope, label.NewSet(test.labels...))
    }
    
    func (c *testContext) NewSubTest(name string) Test {
    	if c.test == nil {
    		panic(fmt.Sprintf("Attempting to create subtest %s from a TestContext with no associated Test", name))
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top