Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,185 for testPath (0.14 sec)

  1. src/internal/trace/reader_test.go

    )
    
    func TestReaderGolden(t *testing.T) {
    	matches, err := filepath.Glob("./testdata/tests/*.test")
    	if err != nil {
    		t.Fatalf("failed to glob for tests: %v", err)
    	}
    	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) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/trace/jsontrace_test.go

    	"internal/trace/traceviewer/format"
    )
    
    func TestJSONTraceHandler(t *testing.T) {
    	testPaths, err := filepath.Glob("./testdata/*.test")
    	if err != nil {
    		t.Fatalf("discovering tests: %v", err)
    	}
    	for _, testPath := range testPaths {
    		t.Run(filepath.Base(testPath), func(t *testing.T) {
    			parsed := getTestTrace(t, testPath)
    			data := recordJSONTraceHandlerResponse(t, parsed)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K 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. pkg/volume/csi/csi_client_test.go

    	}{
    		{name: "test ok", volID: "vol-test", targetPath: testPath},
    		{name: "missing volID", targetPath: testPath, mustFail: true},
    		{name: "missing target path", volID: "vol-test", mustFail: true},
    		{name: "bad fs", volID: "vol-test", targetPath: testPath, fsType: "badfs", mustFail: true},
    		{name: "grpc error", volID: "vol-test", targetPath: testPath, mustFail: true, err: errors.New("grpc error")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K 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. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

            testFile == object
        }
    
        def "with Path returns the File it represents"() {
            setup:
            def testPath = folder.createFile("test1").toPath()
            when:
            def object = parse(testPath)
            then:
            object instanceof File
            testPath.toFile() == object
        }
    
        def "with RegularFile returns the File it represents"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. 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)
  9. cmd/lock-rest-server-common_test.go

    func TestLockRpcServerRemoveEntry(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	testPath, locker, _ := createLockTestServer(ctx, t)
    	defer os.RemoveAll(testPath)
    
    	lockRequesterInfo1 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "0123-4567",
    		Timestamp:       UTCNow(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 23 17:26:21 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    	}
    
    	for testfile, wantImports := range testfiles {
    		tmpdir := mktmpdir(t)
    		defer os.RemoveAll(tmpdir)
    
    		compile(t, "testdata", testfile, filepath.Join(tmpdir, "testdata"), nil, wantImports...)
    		path := "./testdata/" + strings.TrimSuffix(testfile, ".go")
    
    		if pkg := testPath(t, path, tmpdir); pkg != nil {
    			// The package's Imports list must include all packages
    			// explicitly imported by testfile, plus all packages
    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