Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for destPath (0.16 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/field/path_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package field
    
    import "testing"
    
    func TestPath(t *testing.T) {
    	testCases := []struct {
    		op       func(*Path) *Path
    		expected string
    	}{
    		{
    			func(p *Path) *Path { return p },
    			"root",
    		},
    		{
    			func(p *Path) *Path { return p.Child("first") },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    func (client *storageRESTClient) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo,
    	dstVolume, dstPath string, opts RenameOptions,
    ) (res RenameDataResp, err error) {
    	params := RenameDataHandlerParams{
    		DiskID:    *client.diskID.Load(),
    		SrcVolume: srcVolume,
    		SrcPath:   srcPath,
    		DstPath:   dstPath,
    		DstVolume: dstVolume,
    		FI:        fi,
    		Opts:      opts,
    	}
    	var resp *RenameDataResp
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modcmd/vendor.go

    			continue
    		}
    		copiedFiles[file.Name()] = true
    		r, err := os.Open(filepath.Join(src, file.Name()))
    		if err != nil {
    			base.Fatal(err)
    		}
    		dstPath := filepath.Join(dst, file.Name())
    		copiedFiles[dstPath] = true
    		w, err := os.Create(dstPath)
    		if err != nil {
    			base.Fatal(err)
    		}
    		if _, err := io.Copy(w, r); err != nil {
    			base.Fatal(err)
    		}
    		r.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv.go

    // dstPath containing entries for the file mappings in packageFiles, as well
    // as for the packages transitively imported by the package(s) in pkgs.
    //
    // pkgs may include any package pattern that is valid to pass to 'go list',
    // so it may also be a list of Go source files all in the same directory.
    func WriteImportcfg(t testing.TB, dstPath string, packageFiles map[string]string, pkgs ...string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    			// Only log these errors if context is not yet canceled.
    			storageLogOnceIf(ctx, fmt.Errorf("drive:%s, srcVolume: %s, srcPath: %s, dstVolume: %s:, dstPath: %s - error %v",
    				s.drivePath,
    				srcVolume, srcPath,
    				dstVolume, dstPath,
    				err), "xl-storage-rename-data-"+dstVolume)
    		}
    		if s.globalSync {
    			globalSync()
    		}
    	}()
    
    	srcVolumeDir, err := s.getVolDir(srcVolume)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (2)
  6. cmd/xl-storage-disk-id-check.go

    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricRenameFile, srcVolume, srcPath, dstVolume, dstPath)
    	if err != nil {
    		return err
    	}
    	defer done(0, &err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.RenameFile(ctx, srcVolume, srcPath, dstVolume, dstPath) })
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/defaults_test.go

    				t.Errorf("expected PodSpec HostPort to be 0, got %v", got)
    			}
    		})
    	}
    }
    
    type testPath struct {
    	path  string
    	value reflect.Value
    }
    
    func detectDefaults(t *testing.T, obj runtime.Object, v reflect.Value) map[string]string {
    	defaults := map[string]string{}
    	toVisit := []testPath{{path: "", value: v}}
    
    	for len(toVisit) > 0 {
    		visit := toVisit[0]
    		toVisit = toVisit[1:]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  8. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

            getTask().getInputs() != null
            getTask().getOutputs() != null
            getTask().getOnlyIf() != null
            getTask().getOnlyIf().isSatisfiedBy(getTask())
        }
    
        def testPath() {
            ProjectInternal childProject = TestUtil.createChildProject(project, "child")
            childProject.getProjectDir().mkdirs()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/internal/trace/trace_test.go

    	testenv.MustHaveGoRun(t)
    
    	// Check if we're on a builder.
    	onBuilder := testenv.Builder() != ""
    	onOldBuilder := !strings.Contains(testenv.Builder(), "gotip") && !strings.Contains(testenv.Builder(), "go1")
    
    	testPath := filepath.Join("./testdata/testprog", progName)
    	testName := progName
    	runTest := func(t *testing.T, stress bool, extraGODEBUG string) {
    		// Run the program and capture the trace, which is always written to stdout.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. src/path/filepath/path_windows_test.go

    		if err != nil {
    			t.Errorf("toNorm(%s) failed: %v\n", test.arg, err)
    		} else if got != test.want {
    			t.Errorf("toNorm(%s) returns %s, but %s expected\n", test.arg, got, test.want)
    		}
    	}
    
    	testPath := `{{tmp}}\test\foo\bar`
    
    	testsDir := []struct {
    		wd   string
    		arg  string
    		want string
    	}{
    		// test absolute paths
    		{".", `{{tmp}}\test\foo\bar`, `{{tmp}}\test\foo\bar`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top