- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 869 for testPath (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
.idea/scopes/TestData.xml
<component name="DependencyValidationManager"> <scope name="TestData" pattern="file:testData//*" />
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Sep 21 07:11:21 UTC 2023 - 114 bytes - Viewed (0)