Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LinkType (0.11 sec)

  1. src/debug/pe/file_cgo_test.go

    //go:build cgo
    
    package pe
    
    import (
    	"os/exec"
    	"runtime"
    	"testing"
    )
    
    func testCgoDWARF(t *testing.T, linktype int) {
    	if _, err := exec.LookPath("gcc"); err != nil {
    		t.Skip("skipping test: gcc is missing")
    	}
    	testDWARF(t, linktype)
    }
    
    func TestDefaultLinkerDWARF(t *testing.T) {
    	testCgoDWARF(t, linkCgoDefault)
    }
    
    func TestInternalLinkerDWARF(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 734 bytes
    - Viewed (0)
  2. src/debug/pe/file_test.go

    	args := []string{"build", "-o", exe}
    	switch linktype {
    	case linkNoCgo:
    	case linkCgoDefault:
    	case linkCgoInternal:
    		args = append(args, "-ldflags", "-linkmode=internal")
    	case linkCgoExternal:
    		args = append(args, "-ldflags", "-linkmode=external")
    	default:
    		t.Fatalf("invalid linktype parameter of %v", linktype)
    	}
    	args = append(args, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  3. src/path/filepath/path_windows_test.go

    }
    
    func testWalkMklink(t *testing.T, linktype string) {
    	output, _ := exec.Command("cmd", "/c", "mklink", "/?").Output()
    	if !strings.Contains(string(output), fmt.Sprintf(" /%s ", linktype)) {
    		t.Skipf(`skipping test; mklink does not supports /%s parameter`, linktype)
    	}
    	testWalkSymlink(t, func(target, link string) error {
    		output, err := exec.Command("cmd", "/c", "mklink", "/"+linktype, link, target).CombinedOutput()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath_windows.go

    	return filepath.Dir(upperpath)
    }
    
    // Check whether a directory/file is a link type or not
    // LinkType could be SymbolicLink, Junction, or HardLink
    func isLinkPath(path string) (bool, error) {
    	cmd := exec.Command("powershell", "/c", "$ErrorActionPreference = 'Stop'; (Get-Item -Force -LiteralPath $env:linkpath).LinkType")
    	cmd.Env = append(os.Environ(), fmt.Sprintf("linkpath=%s", path))
    	klog.V(8).Infof("Executing command: %q", cmd.String())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. src/reflect/type_test.go

    				t.Errorf("isRegularMemory() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    var sinkType reflect.Type
    
    func BenchmarkTypeForString(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		sinkType = reflect.TypeFor[string]()
    	}
    }
    
    func BenchmarkTypeForError(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		sinkType = reflect.TypeFor[error]()
    	}
    }
    
    func TestType_CanSeq(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top