Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for newConst (0.11 sec)

  1. src/cmd/compile/internal/types2/universe.go

    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    	def(&Nil{object{name: "nil", typ: Typ[UntypedNil], color_: black}})
    }
    
    // A builtinId is the id of a builtin function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/universe.go

    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    	def(&Nil{object{name: "nil", typ: Typ[UntypedNil], color_: black}})
    }
    
    // A builtinId is the id of a builtin function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. cni/pkg/install/testdata/kubeconfig-newhost

    Ben Leggett <******@****.***> 1691716743 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 11 01:19:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy

                    int costInsert = cost[i] + 1;
                    int costDelete = newcost[i - 1] + 1;
    
                    // keep minimum cost
                    newcost[i] = Math.min(Math.min(costInsert, costDelete), costReplace);
                }
    
                // swap cost/newcost arrays
                int[] swap = cost; cost = newcost; newcost = swap;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 14 11:47:34 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
Back to top