Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 149 for temp_file (0.15 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    		err := func() error {
    			tempfile, err := ioutil.TempFile("", "")
    			if err != nil {
    				return err
    			}
    			p := tempfile.Name()
    			defer os.Remove(p)
    
    			tmpl, err := template.New("test").Parse(tt.configTmpl)
    			if err != nil {
    				return fmt.Errorf("failed to parse test template: %v", err)
    			}
    			if err := tmpl.Execute(tempfile, data); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. src/os/error_test.go

    func TestErrPathNUL(t *testing.T) {
    	t.Parallel()
    
    	f, err := os.CreateTemp("", "_Go_ErrPathNUL\x00")
    	if err == nil {
    		f.Close()
    		t.Fatal("TempFile should have failed")
    	}
    	f, err = os.CreateTemp("", "_Go_ErrPathNUL")
    	if err != nil {
    		t.Fatalf("open ErrPathNUL tempfile: %s", err)
    	}
    	defer os.Remove(f.Name())
    	defer f.Close()
    	f2, err := os.OpenFile(f.Name(), os.O_RDWR, 0600)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 00:41:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/go/go_boring_test.go

    //go:build boringcrypto
    
    package main_test
    
    import "testing"
    
    func TestBoringInternalLink(t *testing.T) {
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("main.go", `package main
    		import "crypto/sha1"
    		func main() {
    			sha1.New()
    		}`)
    	tg.run("build", "-ldflags=-w -extld=false", tg.path("main.go"))
    	tg.run("build", "-ldflags=-extld=false", tg.path("main.go"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 544 bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/CacheProjectIntegrationTest.groovy

    import spock.lang.Issue
    
    import static org.junit.Assert.assertEquals
    import static org.junit.Assert.assertTrue
    
    class CacheProjectIntegrationTest extends AbstractIntegrationTest {
        static final String TEST_FILE = "build/test.txt"
    
        @Rule
        public final HttpServer server = new HttpServer()
    
        TestFile projectDir
        TestFile userHomeDir
        TestFile buildFile
        TestFile classPathClassesDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.java

            return asStream("elevate.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath();
                try {
                    try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
                        elevateWordService.exportCsv(writer);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/request-files.md

    * Он предоставляет реальный объект Python <a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> который вы можете передать непосредственно другим библиотекам, которые ожидают файл в качестве объекта.
    
    ### `UploadFile`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

            def tmpFile = file.parentFile.file("${file.name}.tmp")
    
            if (content) {
                tmpFile.bytes = content
            } else if (isJarFile(file)) {
                writeZipped(tmpFile, cl)
            } else {
                writeContents(tmpFile, cl)
                // normalize line endings
                tmpFile.setText(TextUtil.normaliseLineSeparators(tmpFile.getText("utf-8")), "utf-8")
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/publish/AbstractPublishArtifactTest.groovy

        private static final File TEST_FILE = new File("artifactFile");
        private static final String TEST_NAME = "myfile-1";
        private static final String TEST_EXT = "ext";
        private static final String TEST_TYPE = "type";
        private static final String TEST_CLASSIFIER = "classifier";
        private static final Date TEST_DATE = new Date();
    
        protected File getTestFile() {
            TEST_FILE
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 11:02:13 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue13268.go

    // errorcheckoutput mechanism.
    
    package main
    
    import (
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"strings"
    )
    
    func main() {
    	// create source
    	f, err := ioutil.TempFile("", "issue13268-")
    	if err != nil {
    		log.Fatalf("could not create source file: %v", err)
    	}
    	f.Write([]byte("package p\n\nfunc \xef\xef")) // if this fails, we will die later
    	f.Close()
    	defer os.Remove(f.Name())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 984 bytes
    - Viewed (0)
  10. test/fixedbugs/issue22660.go

    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    )
    
    func main() {
    	f, err := ioutil.TempFile("", "issue22660.go")
    	if err != nil {
    		log.Fatal(err)
    	}
    	f.Close()
    	defer os.Remove(f.Name())
    
    	// path must appear in error messages even if we strip them with -trimpath
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top