Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 620 for fullpath (0.18 sec)

  1. src/cmd/go/testdata/script/test_fullpath.txt

    [short] skip
    
    # test with -fullpath
    ! go test ./x/... -fullpath
    stdout '^ +.+/gopath/src/x/fullpath/fullpath_test.go:8: test failed'
    # test without -fullpath
    ! go test ./x/...
    stdout '^ +fullpath_test.go:8: test failed'
    
    -- go.mod --
    module example
    -- x/fullpath/fullpath_test.go --
    package fullpath_test
    
    import (
    	"testing"
    )
    
    func TestFullPath(t *testing.T) {
    	t.Error("test failed")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 16:42:04 UTC 2023
    - 389 bytes
    - Viewed (0)
  2. pkg/kubelet/util/util_windows_test.go

    	expectedAddress := "//./pipe/kubelet-pod-resources"
    
    	fullPath, err := LocalEndpoint(`pod-resources`, "kubelet")
    	require.NoErrorf(t, err, "Failed to create the local endpoint path")
    
    	address, dialer, err := util.GetAddressAndDialer(fullPath)
    	require.NoErrorf(t, err, "Failed to parse the endpoint path and get back address and dialer (path=%q)", fullPath)
    
    	dialerPointer := reflect.ValueOf(dialer).Pointer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/path/filepath/path_windows.go

    	if path == "" {
    		// syscall.FullPath returns an error on empty path, because it's not a valid path.
    		// To implement Abs behavior of returning working directory on empty string input,
    		// special-case empty path by changing it to "." path. See golang.org/issue/24441.
    		path = "."
    	}
    	fullPath, err := syscall.FullPath(path)
    	if err != nil {
    		return "", err
    	}
    	return Clean(fullPath), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/upgrade/common_test.go

    	tmpDir := testutil.SetupTempDir(t)
    	defer os.RemoveAll(tmpDir)
    	fullPath := filepath.Join(tmpDir, "test-config-file")
    	f, err := os.Create(fullPath)
    	if err != nil {
    		t.Errorf("Unable to create test file %q: %v", fullPath, err)
    	}
    	defer f.Close()
    	if _, err = f.WriteString(testConfigToken); err != nil {
    		t.Errorf("Unable to write test file %q: %v", fullPath, err)
    	}
    	tcases := []struct {
    		name               string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. pkg/kubelet/util/util_unix_test.go

    			expectedFullPath: "unix:/path/file.sock",
    		},
    	}
    	for _, test := range tests {
    		fullPath, err := LocalEndpoint(test.path, test.file)
    		if test.expectError {
    			assert.NotNil(t, err, "expected error")
    			continue
    		}
    		assert.Nil(t, err, "expected no error")
    		assert.Equal(t, test.expectedFullPath, fullPath)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/os/path_windows_test.go

    	t.Parallel()
    	tmpDir := t.TempDir()
    
    	const prefix = `\\?\`
    	if len(tmpDir) < 4 || tmpDir[:4] != prefix {
    		fullPath, err := syscall.FullPath(tmpDir)
    		if err != nil {
    			t.Fatalf("FullPath(%q) fails: %v", tmpDir, err)
    		}
    		tmpDir = prefix + fullPath
    	}
    	path := tmpDir + `\dir\`
    	if err := os.MkdirAll(path, 0777); err != nil {
    		t.Fatalf("MkdirAll(%q) failed: %v", path, err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/util/Path.java

            return new Path(concat, absolute);
        }
    
        public String getPath() {
            if (fullPath == null) {
                fullPath = createFullPath();
            }
            return fullPath;
        }
    
        private String createFullPath() {
            StringBuilder path = new StringBuilder();
            if (absolute) {
                path.append(SEPARATOR);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 13:03:23 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_cache_inputs.txt

    ! stdout '\(cached\)'
    go test testcache -run=TestOSArgs -failfast
    stdout '\(cached\)'
    
    # golang.org/issue/64638: that includes the `-fullpath` argument.
    go test testcache -run=TestOSArgs -fullpath
    ! stdout '\(cached\)'
    go test testcache -run=TestOSArgs -fullpath
    stdout '\(cached\)'
    
    
    # Executables within GOROOT and GOPATH should affect caching,
    # even if the test does not stat them explicitly.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go

    			assertDirEmpty(t, filepath.Join(tmpDir, "manifests"))
    			assertDirEmpty(t, filepath.Join(tmpDir, "pki"))
    			assertDirEmpty(t, filepath.Join(tmpDir, "tmp"))
    
    			// Verify the files as requested by the test:
    			for _, path := range test.verifyExists {
    				assertExists(t, filepath.Join(tmpDir, path))
    			}
    			for _, path := range test.verifyNotExists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/flagdefs.go

    	"blockprofilerate":     true,
    	"count":                true,
    	"coverprofile":         true,
    	"cpu":                  true,
    	"cpuprofile":           true,
    	"failfast":             true,
    	"fullpath":             true,
    	"fuzz":                 true,
    	"fuzzminimizetime":     true,
    	"fuzztime":             true,
    	"list":                 true,
    	"memprofile":           true,
    	"memprofilerate":       true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top