Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for tmp_file1 (0.39 sec)

  1. cmd/kubeadm/app/util/runtime/runtime_test.go

    	}{
    		{
    			name: "Valid domain socket is detected as such",
    			proc: func(t *testing.T) {
    				tmpFile, err := os.CreateTemp("", tempPrefix)
    				if err != nil {
    					t.Fatalf("unexpected error by TempFile: %v", err)
    				}
    				theSocket := tmpFile.Name()
    				os.Remove(theSocket)
    				tmpFile.Close()
    
    				con, err := net.Listen("unix", theSocket)
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    		err = os.RemoveAll(tmpdir)
    		if err != nil {
    			t.Fatalf("Fail to remove tmpdir: %v", err)
    		}
    	}()
    	tmpfile, err := os.CreateTemp(tmpdir, "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpfile: %v", err)
    	}
    	if err := tmpfile.Close(); err != nil {
    		t.Fatalf("Couldn't close tmpfile: %v", err)
    	}
    
    	tests := []struct {
    		name     string
    		filename string
    		want     bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. 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)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultClasspathBuilder.java

            File tmpFile = temporaryFileProvider.createTemporaryFile(jarFile.getName(), ".tmp");
            try {
                Files.createDirectories(parentDir.toPath());
                inPlaceBuilder.jar(tmpFile, action);
                Files.move(tmpFile.toPath(), jarFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
            } finally {
                Files.deleteIfExists(tmpFile.toPath());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. 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)
  6. src/mime/multipart/formdata.go

    }
    
    // RemoveAll removes any temporary files associated with a [Form].
    func (f *Form) RemoveAll() error {
    	var err error
    	for _, fhs := range f.File {
    		for _, fh := range fhs {
    			if fh.tmpfile != "" {
    				e := os.Remove(fh.tmpfile)
    				if e != nil && !errors.Is(e, os.ErrNotExist) && err == nil {
    					err = e
    				}
    			}
    		}
    	}
    	return err
    }
    
    // A FileHeader describes a file part of a multipart request.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/asm_test.go

    	}
    
    	for _, pgm := range pgms {
    		tmpfile := filepath.Join(dir, "x.s")
    		err = os.WriteFile(tmpfile, pgm.text, 0644)
    		if err != nil {
    			t.Fatalf("can't write output: %v\n", err)
    		}
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-S", "-o", filepath.Join(dir, "test.o"), tmpfile)
    		cmd.Env = append(os.Environ(), "GOOS=linux", "GOARCH=ppc64le")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 22:14:57 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. cmd/update_test.go

    func TestGetHelmVersion(t *testing.T) {
    	createTempFile := func(content string) string {
    		tmpfile, err := os.CreateTemp("", "helm-testfile-")
    		if err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    		if _, err = tmpfile.WriteString(content); err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    		if err = tmpfile.Close(); err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. hack/update-codegen.sh

              // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
    EOF
        } > "${tmpfile}"
    
        genswaggertypedocs \
            -s \
            "${gv_dir}/types.go" \
            -f - \
            >> "${tmpfile}"
    
        echo "// AUTO-GENERATED FUNCTIONS END HERE" >> "${tmpfile}"
    
        gofmt -w -s "${tmpfile}"
        mv "${tmpfile}" "${gv_dir}/types_swagger_doc_generated.go"
    }
    
    # swagger generation
    #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  10. hack/lib/protoc.sh

    function kube::protoc::format() {
      local package=${1}
    
      # Update boilerplate for the generated file.
      cat hack/boilerplate/boilerplate.generatego.txt "${package}/api.pb.go" > tmpfile && mv tmpfile "${package}/api.pb.go"
    
      # Run gofmt to clean up the generated code.
      kube::golang::setup_env
      gofmt -s -w "${package}/api.pb.go"
    }
    
    # Compares the contents of $1 and $2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 20:53:13 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top