Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for tmpdir (0.04 sec)

  1. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Act ##
            final File tmpDir = Curl.tmpDir;
    
            // ## Assert ##
            assertNotNull(tmpDir);
            assertTrue(tmpDir.exists());
            assertTrue(tmpDir.isDirectory());
            assertTrue(tmpDir.canRead());
            assertTrue(tmpDir.canWrite());
            assertEquals(new File(System.getProperty("java.io.tmpdir")).getAbsolutePath(), tmpDir.getAbsolutePath());
        }
    
        @Test
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. lib/wasm/wasm_exec_node.js

    globalThis.performance ??= require("performance");
    
    globalThis.crypto ??= require("crypto");
    
    require("./wasm_exec");
    
    const go = new Go();
    go.argv = process.argv.slice(2);
    go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/addr2line/addr2line_test.go

    	}
    }
    
    // This is line 101. The test depends on that.
    func TestAddr2Line(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	tmpDir := t.TempDir()
    
    	// Build copy of test binary with debug symbols,
    	// since the one running now may not have them.
    	exepath := filepath.Join(tmpDir, "testaddr2line_test.exe")
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "test", "-c", "-o", exepath, "cmd/addr2line").CombinedOutput()
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir);
    
            assertEquals(basedir.getAbsolutePath(), aligned);
        }
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. misc/ios/go_ios_exec.go

    	}
    	os.Exit(exitCode)
    }
    
    func runMain() (int, error) {
    	var err error
    	tmpdir, err = os.MkdirTemp("", "go_ios_exec_")
    	if err != nil {
    		return 1, err
    	}
    	if !debug {
    		defer os.RemoveAll(tmpdir)
    	}
    
    	appdir := filepath.Join(tmpdir, "gotest.app")
    	os.RemoveAll(appdir)
    
    	if err := assembleApp(appdir, os.Args[1]); err != nil {
    		return 1, err
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            generator.setCommandDestroyTimeout(timeout);
            assertTrue(true);
        }
    
        public void test_setBaseDir() throws Exception {
            final File tempDir = new File(System.getProperty("java.io.tmpdir"));
            generator.setBaseDir(tempDir);
            assertTrue(true);
        }
    
        public void test_setCommandList() throws Exception {
            final List<String> commands = Collections.singletonList("test_command");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            assertNotNull(cache);
        }
    
        @Test
        public void testFileBasedCacheConstructor() throws IOException {
            tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir);
            ContentCache cache = new ContentCache(tempFile);
    
            assertNotNull(cache);
        }
    
        @Test
        public void testMemoryBasedCacheGetInputStream() throws IOException {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/curl/Curl.java

     *
     * <p>The temporary directory used by Curl is defined by the {@code tmpDir} field, which is initialized
     * to the system's temporary directory.</p>
     */
    public class Curl {
    
        /**
         * The temporary directory used by Curl. It is initialized to the system's temporary directory.
         */
        public static final File tmpDir = new File(System.getProperty("java.io.tmpdir"));
    
        /**
         * Private constructor to prevent instantiation.
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4 });
            assertFalse(cos.done);
            assertTrue(cos.isInMemory());
            cos.close();
            assertFalse(cos.done);
        }
    
        @Test
        public void inFile() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

         *
         * @param threshold the threshold in bytes for writing to memory before writing to a file
         * @param tmpDir the temporary directory to create the file in
         */
        public ContentOutputStream(final int threshold, final File tmpDir) {
            super(threshold, PREFIX, SUFFIX, tmpDir);
        }
    
        @Override
        public File getFile() {
            done = true;
            return super.getFile();
        }
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top