Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 193 for TestFile (0.29 sec)

  1. src/archive/tar/reader_test.go

    }
    
    func TestFileReader(t *testing.T) {
    	type (
    		testRead struct { // Read(cnt) == (wantStr, wantErr)
    			cnt     int
    			wantStr string
    			wantErr error
    		}
    		testWriteTo struct { // WriteTo(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testRemaining struct { // logicalRemaining() == wantLCnt, physicalRemaining() == wantPCnt
    			wantLCnt int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  2. src/go/printer/printer_test.go

    		}
    
    		out := buf.String()
    		if out != src {
    			t.Errorf("\ngot : %q\nwant: %q\n", out, src)
    		}
    	}
    }
    
    func TestBaseIndent(t *testing.T) {
    	t.Parallel()
    	// The testfile must not contain multi-line raw strings since those
    	// are not indented (because their values must not change) and make
    	// this test fail.
    	const filename = "printer.go"
    	src, err := os.ReadFile(filename)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf_test.go

    		}
    	}
    	return
    }
    
    type builtFile struct {
    	*objfilepkg.File
    	path string
    }
    
    func gobuild(t *testing.T, dir string, testfile string, gcflags string) *builtFile {
    	src := filepath.Join(dir, "test.go")
    	dst := filepath.Join(dir, "out.exe")
    
    	if err := os.WriteFile(src, []byte(testfile), 0666); err != nil {
    		t.Fatal(err)
    	}
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", gcflags, "-o", dst, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

        }
    
        def "can cache artifact"() {
            def destFile = tempDir.file("cached.zip")
            def content = "Data".bytes
            server.expectPut("/cache/${key.hashCode}", destFile, HttpStatus.SC_OK, null, content.length)
    
            when:
            cache.store(key, writer(content))
            then:
            destFile.bytes == content
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. maven-core/src/test/resources-project-builder/foo/sub/pom.xml

                    <mkdir dir="${basedir}/target/test-classes/${test.projects.repository}/${test.projects.target.directory}/" />
    
                    <jar destfile="${basedir}/target/test-classes/${test.projects.repository}/${test.projects.target.directory}/${test.projects.archetype}.jar" basedir="${basedir}/src/test/archetypes/${test.projects.source.directory}/" />
                  </tasks>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 08:59:31 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

            expect(path, false, ['PUT'], fileWriter(destFile), new DefaultPasswordCredentials(username, password))
        }
    
        private Action fileWriter(File destFile) {
            new ActionSupport("write request to $destFile.name") {
                void handle(HttpServletRequest request, HttpServletResponse response) {
                    destFile.parentFile.mkdirs()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/AbstractProjectGeneratorTask.groovy

                templateArgs.original = originalContents
                templateArgs.beforePlugins = beforePlugins
                templateArgs.afterPlugins = afterPlugins
            }
    
            destFile.parentFile.mkdirs()
            destFile.withWriter { Writer writer ->
                if (templateName.endsWith('.gradle')) {
                    writer << "// Generated for subproject ${templateArgs.projectName}\n"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

                    ZipEntry entry = entries.nextElement();
    
                    File destFile = new File(dest, safePathName(entry.getName()));
                    if (entry.isDirectory()) {
                        destFile.mkdirs();
                        continue;
                    }
    
                    OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(destFile));
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

            val projectBuildDirPath = projectBuildDir.asFile.get().toPath()
    
            reports.filter { it.isDirectory }.forEach {
                val destFile = rootBuildDir.resolve("report$projectPathName-${it.name}.zip")
                zip(destFile, it)
            }
    
            // Zip all files in project build directory into a single zip file to avoid publishing too many tiny files
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:19:47 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

                        buildFile << "plugins { id('test.my-plugin') }"
                        gradleProperties << "org.gradle.jvmargs=\\"-javaagent:\$jacocoAgentJar=destfile=\$jacocoDestFile\\""
    
                        when:
                        def result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top