Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 149 for temp_file (0.14 sec)

  1. src/runtime/debug/heapdump_test.go

    func TestWriteHeapDumpNonempty(t *testing.T) {
    	if runtime.GOOS == "js" {
    		t.Skipf("WriteHeapDump is not available on %s.", runtime.GOOS)
    	}
    	f, err := os.CreateTemp("", "heapdumptest")
    	if err != nil {
    		t.Fatalf("TempFile failed: %v", err)
    	}
    	defer os.Remove(f.Name())
    	defer f.Close()
    	WriteHeapDump(f.Fd())
    	fi, err := f.Stat()
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    	const minSize = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 12 00:32:29 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/IoTestCase.java

       */
      protected final File createTempDir() throws IOException {
        File tempFile = File.createTempFile("IoTestCase", "");
        if (!tempFile.delete() || !tempFile.mkdir()) {
          throw new IOException("failed to create temp dir");
        }
        filesToDelete.add(tempFile);
        return tempFile;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ResourcesTest.java

        // Check that we can find a resource if it is visible to the context class
        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

            final File tempFile = File.createTempFile("maven-core-unit-test-pom", ".xml");
            final String selector = tempFile.getName();
            final MavenProject mavenProject = createMavenProject("maven-core");
            mavenProject.setFile(tempFile);
    
            final boolean result = sut.isMatchingProject(mavenProject, selector, tempFile.getParentFile());
    
            tempFile.delete();
            assertThat(result, is(true));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

            return asStream("badword.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath();
                try {
                    try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
                        badWordService.exportCsv(writer);
                    } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. pkg/volume/util/hostutil/hostutil_test.go

    			},
    		},
    		{
    			"File Test",
    			false,
    			FileTypeFile,
    			func() (string, string, error) {
    				tempFile, err := os.CreateTemp("", "test-get-filetype")
    				if err != nil {
    					return "", "", err
    				}
    				tempFile.Close()
    				return tempFile.Name(), tempFile.Name(), nil
    			},
    		},
    		{
    			"Socket Test",
    			false,
    			FileTypeSocket,
    			func() (string, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            markForDeletion(dir);
    
            return dir;
        }
    
        public synchronized File createTempFile() throws IOException {
            File tempFile = File.createTempFile(baseFilename, fileSuffix);
            tempFile.deleteOnExit();
            markForDeletion(tempFile);
    
            return tempFile;
        }
    
        public void cleanUp() throws IOException {
            for (Iterator it = filesToDelete.iterator(); it.hasNext(); ) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/resource/local/GroupedAndNamedUniqueFileStore.java

            //and reexecuting the action isn't acceptable
            final File tempFile = getTempFile();
            addAction.execute(tempFile);
            final String groupedAndNamedKey = toPath(key, getChecksum(tempFile));
            return markAccessed(delegate.move(groupedAndNamedKey, tempFile));
        }
    
        private LocallyAvailableResource markAccessed(LocallyAvailableResource resource) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 02 16:14:10 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy

        final index = Mock(CachedExternalResourceIndex)
        final timeProvider = Mock(BuildCommencedTimeProvider)
        final tempFile = tempDir.file("temp-file")
        final cachedFile = tempDir.file("cached-file")
        final temporaryFileProvider = Stub(TemporaryFileProvider) {
            createTemporaryFile(_, _, _) >> tempFile
        }
        final cacheAccessCoordinator = new ArtifactCacheLockingAccessCoordinatorStub()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 17:19:47 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  10. cmd/common-main_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.content)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			value, err := readFromSecret(tmpfile.Name())
    			if err != nil && !testCase.expectedErr {
    				t.Error(err)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top