Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 149 for temp_file (0.12 sec)

  1. src/cmd/internal/obj/loong64/asm_test.go

    	buf := bytes.NewBuffer(make([]byte, 0, genBufSize))
    	genLargeBranch(buf)
    
    	tmpfile := filepath.Join(dir, "x.s")
    	if err := os.WriteFile(tmpfile, buf.Bytes(), 0644); err != nil {
    		t.Fatalf("Failed to write file: %v", err)
    	}
    
    	// Assemble generated file.
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-o", filepath.Join(dir, "x.o"), tmpfile)
    	cmd.Env = append(os.Environ(), "GOARCH=loong64", "GOOS=linux")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:39:37 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

            override fun assignSpoolFile(stateType: StateType): StateFile {
                Files.createDirectories(baseDir.toPath())
                val tempFile = Files.createTempFile(baseDir.toPath(), stateType.fileBaseName, ".tmp")
                return StateFile(stateType, tempFile.toFile())
            }
    
            override fun <T> createValueStore(stateType: StateType, writer: ValueStore.Writer<T>, reader: ValueStore.Reader<T>): ValueStore<T> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/request-files.md

    * It has a <a href="https://docs.python.org/3/glossary.html#term-file-like-object" class="external-link" target="_blank">file-like</a> `async` interface.
    * It exposes an actual Python <a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> object that you can pass directly to other libraries that expect a file-like object.
    
    ### `UploadFile`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py

    """Serves as a common "main" function for all the SavedModel tests.
    
    There is a fair amount of setup needed to initialize tensorflow and get it
    into a proper TF2 execution mode. This hides that boilerplate.
    """
    
    import tempfile
    from absl import app
    from absl import flags
    from absl import logging
    import tensorflow.compat.v1 as tf
    
    from tensorflow.python import pywrap_mlir  # pylint: disable=g-direct-tensorflow-import
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. test/fixedbugs/issue19658.go

    		{"string", `"test"`, "panic: test"}} {
    
    		b := bytes.Buffer{}
    		fmt.Fprintf(&b, fn, tc.Type, tc.Input)
    
    		err = ioutil.WriteFile(tmpFile, b.Bytes(), 0644)
    		if err != nil {
    			log.Fatal(err)
    		}
    
    		cmd := exec.Command("go", "run", tmpFile)
    		var buf bytes.Buffer
    		cmd.Stdout = &buf
    		cmd.Stderr = &buf
    		cmd.Env = os.Environ()
    		cmd.Run() // ignore err as we expect a panic
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/file-temp/src/main/java/org/gradle/api/internal/file/temp/DefaultTemporaryFileProvider.java

        }
    
        @Override
        public File createTemporaryFile(String prefix, @Nullable String suffix, String... path) {
            File dir = newTemporaryFile(path);
            forceMkdir(dir);
            try {
                return TempFiles.createTempFile(prefix, suffix, dir);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 21:16:13 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy

    class DefaultProviderFactoryTest extends Specification implements ProviderAssertions {
    
        static final PROJECT = ProjectBuilder.builder().build()
        static final File TEST_FILE = PROJECT.file('someDir')
    
        def providerFactory = new DefaultProviderFactory()
    
        def "cannot create provider for null value"() {
            when:
            providerFactory.provider(null)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. src/io/io_test.go

    		}
    	}
    }
    
    func TestOffsetWriter_Seek(t *testing.T) {
    	tmpfilename := "TestOffsetWriter_Seek"
    	tmpfile, err := os.CreateTemp(t.TempDir(), tmpfilename)
    	if err != nil || tmpfile == nil {
    		t.Fatalf("CreateTemp(%s) failed: %v", tmpfilename, err)
    	}
    	defer tmpfile.Close()
    	w := NewOffsetWriter(tmpfile, 0)
    
    	// Should throw error errWhence if whence is not valid
    	t.Run("errWhence", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  9. internal/ioutil/ioutil_test.go

    	f, err := os.CreateTemp("", "")
    	if err != nil {
    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	tmpFile := f.Name()
    	f.Close()
    	defer os.Remove(f.Name())
    	fi1, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	fi2, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/x86/obj6_test.go

    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpdir)
    	tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tmpfile.Close()
    	_, err = tmpfile.WriteString(s)
    	if err != nil {
    		t.Fatal(err)
    	}
    	cmd := testenv.Command(t,
    		testenv.GoToolPath(t), "tool", "asm", "-S", "-dynlink",
    		"-o", filepath.Join(tmpdir, "output.6"), tmpfile.Name())
    
    	cmd.Env = append(os.Environ(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
Back to top