Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for destPath (0.23 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DefaultCopySpecCodec.kt

                writeCollection(value.children)
            }
        }
    
        override suspend fun ReadContext.decode(): DefaultCopySpec {
            return decodePreservingIdentity { id ->
                val destPath = readNullableString()
                val sourceFiles = read() as FileCollection
                val patterns = read() as PatternSet
                val duplicatesStrategy = readEnum<DuplicatesStrategy>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/internal/trace/reader_test.go

    	}
    	for _, testPath := range matches {
    		testPath := testPath
    		testName, err := filepath.Rel("./testdata", testPath)
    		if err != nil {
    			t.Fatalf("failed to relativize testdata path: %v", err)
    		}
    		t.Run(testName, func(t *testing.T) {
    			tr, exp, err := testtrace.ParseFile(testPath)
    			if err != nil {
    				t.Fatalf("failed to parse test file at %s: %v", testPath, err)
    			}
    			testReader(t, tr, exp)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/format.go

    // ParseFile parses a test file generated by the testgen package.
    func ParseFile(testPath string) (io.Reader, *Expectation, error) {
    	ar, err := txtar.ParseFile(testPath)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err)
    	}
    	if len(ar.Files) != 2 {
    		return nil, nil, fmt.Errorf("malformed test %s: wrong number of files", testPath)
    	}
    	if ar.Files[0].Name != "expect" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/trace/summary_test.go

    }
    
    func TestRelatedGoroutinesV2Trace(t *testing.T) {
    	testPath := "testdata/tests/go122-gc-stress.test"
    	trc, _, err := testtrace.ParseFile(testPath)
    	if err != nil {
    		t.Fatalf("malformed test %s: bad trace file: %v", testPath, err)
    	}
    
    	// Create a reader.
    	r, err := trace.NewReader(trc)
    	if err != nil {
    		t.Fatalf("failed to create trace reader for %s: %v", testPath, err)
    	}
    
    	// Collect all the events.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/cmd/trace/jsontrace_test.go

    	}
    	return
    }
    
    func getTestTrace(t *testing.T, testPath string) *parsedTrace {
    	t.Helper()
    
    	// First read in the text trace and write it out as bytes.
    	f, err := os.Open(testPath)
    	if err != nil {
    		t.Fatalf("failed to open test %s: %v", testPath, err)
    	}
    	r, err := raw.NewTextReader(f)
    	if err != nil {
    		t.Fatalf("failed to read test %s: %v", testPath, err)
    	}
    	var trace bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/internal/trace/gc_test.go

    			}
    		}
    	}
    	t.Run("V2", func(t *testing.T) {
    		testPath := "testdata/tests/go122-gc-stress.test"
    		r, _, err := testtrace.ParseFile(testPath)
    		if err != nil {
    			t.Fatalf("malformed test %s: bad trace file: %v", testPath, err)
    		}
    		var events []trace.Event
    		tr, err := trace.NewReader(r)
    		if err != nil {
    			t.Fatalf("malformed test %s: bad trace file: %v", testPath, err)
    		}
    		for {
    			ev, err := tr.ReadEvent()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/mktests.go

    			return err
    		}
    		if skip {
    			continue
    		}
    
    		fmt.Fprintf(os.Stderr, "generating %s... ", name)
    
    		// Get the test path.
    		testPath := filepath.Join(genroot, fmt.Sprintf("%s.test", name))
    
    		// Run generator.
    		cmd := exec.Command("go", "run", path, testPath)
    		if out, err := cmd.CombinedOutput(); err != nil {
    			return fmt.Errorf("running generator %s: %v:\n%s", name, err, out)
    		}
    		fmt.Fprintln(os.Stderr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. cmd/naughty-disk_test.go

    	if err := d.calcError(); err != nil {
    		return RenameDataResp{}, err
    	}
    	return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts)
    }
    
    func (d *naughtyDisk) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error {
    	if err := d.calcError(); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. cmd/storage-interface.go

    	ReadXL(ctx context.Context, volume, path string, readData bool) (RawFileInfo, error)
    	RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error)
    
    	// File operations.
    	ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    	}
    	return outname
    }
    
    func testPath(t *testing.T, path, srcDir string) *types.Package {
    	t0 := time.Now()
    	fset := token.NewFileSet()
    	pkg, err := Import(fset, make(map[string]*types.Package), path, srcDir, nil)
    	if err != nil {
    		t.Errorf("testPath(%s): %s", path, err)
    		return nil
    	}
    	t.Logf("testPath(%s): %v", path, time.Since(t0))
    	return pkg
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top