Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 64 for content_es (0.78 sec)

  1. src/go/types/eval_test.go

    	}
    	fset := token.NewFileSet()
    	for _, test := range tests {
    		testEval(t, fset, nil, nopos, test, Typ[UntypedBool], "", "true")
    	}
    }
    
    func TestEvalPos(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// The contents of /*-style comments are of the form
    	//	expr => value, type
    	// where value may be the empty string.
    	// Each expr is evaluated at the position of the comment
    	// and the result is compared with the expected value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	// The map keys are the elements of Analysis.Required,
    	// and the type of each corresponding value is the required
    	// analysis's ResultType.
    	ResultOf map[*Analyzer]interface{}
    
    	// ReadFile returns the contents of the named file.
    	//
    	// The only valid file names are the elements of OtherFiles
    	// and IgnoredFiles, and names returned by
    	// Fset.File(f.FileStart).Name() for each f in Files.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/ar.go

    	wordSize := 4
    	if is64 {
    		wordSize = 8
    	}
    
    	contents := make([]byte, atolwhex(arhdr.size))
    	if _, err := io.ReadFull(f, contents); err != nil {
    		Exitf("short read from %s", filename)
    	}
    
    	var c uint64
    	if is64 {
    		c = binary.BigEndian.Uint64(contents)
    	} else {
    		c = uint64(binary.BigEndian.Uint32(contents))
    	}
    	contents = contents[wordSize:]
    
    	ret := make(archiveMap)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 23:11:11 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/objfile_test.go

    		h[i] = w.contentHash(syms[i])
    	}
    
    	tests := []struct {
    		a, b  int
    		equal bool
    	}{
    		{0, 1, true},  // same contents, no relocs
    		{0, 2, false}, // different contents
    		{3, 4, true},  // same contents, same relocs
    		{3, 5, true},  // recursively same contents
    		{3, 6, false}, // same contents, different relocs
    	}
    	for _, test := range tests {
    		if (h[test.a] == h[test.b]) != test.equal {
    			eq := "equal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. src/os/read_test.go

    	t.Parallel()
    
    	filename := "rumpelstilzchen"
    	contents, err := ReadFile(filename)
    	if err == nil {
    		t.Fatalf("ReadFile %s: error expected, none found", filename)
    	}
    
    	filename = "read_test.go"
    	contents, err = ReadFile(filename)
    	if err != nil {
    		t.Fatalf("ReadFile %s: %v", filename, err)
    	}
    
    	checkNamedSize(t, filename, int64(len(contents)))
    }
    
    func TestWriteFile(t *testing.T) {
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/link/cgo_test.go

    	fmt.Printf("%v\n", hello)
    }
    `
    
    func testCGOLTO(t *testing.T, cc, cgoCflags string, test int) {
    	t.Parallel()
    
    	dir := t.TempDir()
    
    	writeTempFile := func(name, contents string) {
    		if err := os.WriteFile(filepath.Join(dir, name), []byte(contents), 0644); err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	writeTempFile("go.mod", "module cgolto\n")
    
    	switch test {
    	case 0:
    		writeTempFile("main.go", test1_main)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 09 22:13:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. src/time/tzdata/tzdata.go

    func get2s(s string) int {
    	if len(s) < 2 {
    		return 0
    	}
    	return int(s[0]) | int(s[1])<<8
    }
    
    // loadFromEmbeddedTZData returns the contents of the file with the given
    // name in an uncompressed zip file, where the contents of the file can
    // be found in embeddedTzdata.
    // This is similar to time.loadTzinfoFromZip.
    func loadFromEmbeddedTZData(name string) (string, error) {
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 22:30:53 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/base/timings.go

    	// determine column widths and contents
    	var widths []int
    	var number []bool
    	for _, line := range lines {
    		for i, col := range line {
    			if i < len(widths) {
    				if len(col) > widths[i] {
    					widths[i] = len(col)
    				}
    			} else {
    				widths = append(widths, len(col))
    				number = append(number, isnumber(col)) // first line determines column contents
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/os/dir.go

    	"internal/filepathlite"
    	"io"
    	"io/fs"
    	"slices"
    )
    
    type readdirMode int
    
    const (
    	readdirName readdirMode = iota
    	readdirDirEntry
    	readdirFileInfo
    )
    
    // Readdir reads the contents of the directory associated with file and
    // returns a slice of up to n [FileInfo] values, as would be returned
    // by [Lstat], in directory order. Subsequent calls on the same file will yield
    // further FileInfos.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/net/sendfile_linux.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"internal/poll"
    	"io"
    	"os"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the sendfile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number (potentially zero) of bytes
    // copied and any non-EOF error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top