Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 416 for fnName (4.15 sec)

  1. src/internal/coverage/cformat/format.go

    // Counter values will be accumulated where appropriate.
    func (fm *Formatter) AddUnit(file string, fname string, isfnlit bool, unit coverage.CoverableUnit, count uint32) {
    	if fm.p == nil {
    		panic("AddUnit invoked before SetPackage")
    	}
    	fkey := fnfile{file: file, fname: fname, lit: isfnlit}
    	idx, ok := fm.p.funcTable[fkey]
    	if !ok {
    		idx = uint32(len(fm.p.funcs))
    		fm.p.funcs = append(fm.p.funcs, fkey)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/BazelFileContentGenerator.groovy

                return i
        return -1
    
    def _AsClassName(fname):
        fname = [x.path for x in fname.files.to_list()][0]
        toks = fname[:-5].split("/")
        findex = -1
        for s in _PREFIXES:
            findex = _SafeIndex(toks, s)
            if findex != -1:
                break
        if findex == -1:
            fail("%s does not contain any of %s" % (fname, _PREFIXES))
        return ".".join(toks[findex:]) + ".class"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/testing/fstest/mapfs.go

    	var need = make(map[string]bool)
    	if name == "." {
    		elem = "."
    		for fname, f := range fsys {
    			i := strings.Index(fname, "/")
    			if i < 0 {
    				if fname != "." {
    					list = append(list, mapFileInfo{fname, f})
    				}
    			} else {
    				need[fname[:i]] = true
    			}
    		}
    	} else {
    		elem = name[strings.LastIndex(name, "/")+1:]
    		prefix := name + "/"
    		for fname, f := range fsys {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/net/http/filetransport_test.go

    	}
    }
    
    func TestFileTransport(t *testing.T) {
    	check := checker(t)
    
    	dname := t.TempDir()
    	fname := filepath.Join(dname, "foo.txt")
    	err := os.WriteFile(fname, []byte("Bar"), 0644)
    	check("WriteFile", err)
    	defer os.Remove(fname)
    
    	tr := &Transport{}
    	tr.RegisterProtocol("file", NewFileTransport(Dir(dname)))
    	c := &Client{Transport: tr}
    
    	fooURLs := []string{"file:///foo.txt", "file://../foo.txt"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 17:07:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. cmd/admin-handler-utils.go

    func exportError(ctx context.Context, err error, fname, entity string) APIError {
    	if entity == "" {
    		return toAPIError(ctx, fmt.Errorf("error exporting %s with: %w", fname, err))
    	}
    	return toAPIError(ctx, fmt.Errorf("error exporting %s from %s with: %w", entity, fname, err))
    }
    
    // wraps import error for more context
    func importError(ctx context.Context, err error, fname, entity string) APIError {
    	if entity == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. pkg/envoy/proxy.go

    }
    
    var HostIP = os.Getenv("HOST_IP")
    
    // readBootstrapToJSON reads a config file, in YAML or JSON, and returns JSON string
    func readBootstrapToJSON(fname string) (string, error) {
    	b, err := os.ReadFile(fname)
    	if err != nil {
    		return "", fmt.Errorf("failed to read file: %s, %v", fname, err)
    	}
    
    	// Replace host with HOST_IP env var if it is "$(HOST_IP)".
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    			if !interestingToCompare(dentry.fname) {
    				continue
    			}
    			if eidx >= len(eentries) {
    				t.Errorf("testcase %s missing expected entry for %s, skipping", tc, dentry.fname)
    				continue
    			}
    			eentry := eentries[eidx]
    			ecst := ecsites[eidx]
    			eidx++
    			if dentry.fname != eentry.fname {
    				t.Errorf("got fn %q wanted %q, skipping checks",
    					dentry.fname, eentry.fname)
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.cc

      std::string fname =
          absl::StrCat("_expanded_", ndef.name(), "_", std::to_string(x));
      if (!ctx.FindFunctionByName(fname)) {
        TF_ASSIGN_OR_RETURN(auto func, ExpandNode(ndef, fname));
        TF_RETURN_IF_ERROR(ctx.AddFunctionDef(func));
      }
    
      // Rewrite the out_op to be the call op. This essentially a deep copy of the
      // orig_op, except the op name.
      auto* new_op = new EagerOperation(&ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/flowgraph_generator1.go

    		for i := 0; i < nconfigs; i++ {
    			fname := fnameBase + fmt.Sprintf("%b", i)
    			bs, k := strings2blocks(split, fname, i)
    			fmt.Printf("%s", makeFunctionFromFlowGraph(bs, fname))
    			s += `
    		{f:` + fname + `, maxin:` + fmt.Sprintf("%d", 1<<k) + `, blocks:` + fmtBlocks(bs) + `},`
    		}
    
    	}
    	s += `}
    `
    	// write types for name+array tables.
    	fmt.Printf("%s",
    		`
    type blo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 6.7K bytes
    - Viewed (0)
  10. pkg/test/kube/dump.go

    						c.Name(), pod.Namespace, pod.Name, container.Name, restarts, prow.ArtifactsURL(fname))
    				}
    				l, err := c.PodLogs(context.TODO(), pod.Name, pod.Namespace, container.Name, true /* previousLog */)
    				if err != nil {
    					scopes.Framework.Warnf("Unable to get previous logs for cluster/pod/container: %s/%s/%s/%s: %v",
    						c.Name(), pod.Namespace, pod.Name, container.Name, err)
    				}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top