Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 149 for temp_file (0.13 sec)

  1. tests/integration/pilot/revisions/uninstall_test.go

    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    
    			createIstioOperatorTempFile := func(name, revision string) (fileName string) {
    				tempFile, err := os.CreateTemp("", name)
    				if err != nil {
    					t.Fatalf("failed to create temp file: %v", err)
    				}
    				defer tempFile.Close()
    				contents := fmt.Sprintf(`apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    metadata:
      name: %s
      namespace: istio-system
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/integration_test/tensorflow_to_stablehlo_test.py

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    
    import tempfile
    from mlir import ir
    from mlir.dialects import stablehlo
    import tensorflow as tf
    from tensorflow.compiler.mlir.tensorflow_to_stablehlo.python import pywrap_tensorflow_to_stablehlo as tensorflow_to_stablehlo
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/arm64/asm_arm64_test.go

    	gen(buf)
    
    	tmpfile := filepath.Join(dir, "x.s")
    	err = os.WriteFile(tmpfile, buf.Bytes(), 0644)
    	if err != nil {
    		t.Fatalf("can't write output: %v\n", err)
    	}
    
    	pattern := `0x0080\s00128\s\(.*\)\tMOVD\t\$3,\sR3`
    
    	// assemble generated file
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-S", "-o", filepath.Join(dir, "test.o"), tmpfile)
    	cmd.Env = append(os.Environ(), "GOOS=linux")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/commands.go

    	return func(input io.Reader, output io.Writer, ui plugin.UI) error {
    		tempFile, err := newTempFile(os.TempDir(), "pprof", "."+suffix)
    		if err != nil {
    			return err
    		}
    		deferDeleteTempFile(tempFile.Name())
    		if _, err := io.Copy(tempFile, input); err != nil {
    			return err
    		}
    		tempFile.Close()
    		// Try visualizers until one is successful
    		for _, v := range visualizers {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.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
    - 16.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/patches/patches_test.go

    			}
    		})
    	}
    }
    
    func TestGetPatchSetsForPathMustBeDirectory(t *testing.T) {
    	tempFile, err := os.CreateTemp("", "test-file")
    	if err != nil {
    		t.Errorf("error creating temporary file: %v", err)
    	}
    	defer utiltesting.CloseAndRemove(t, tempFile)
    
    	_, _, _, err = getPatchSetsFromPath(tempFile.Name(), testKnownTargets, io.Discard)
    	var pathErr *os.PathError
    	if !errors.As(err, &pathErr) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/request-files.md

    ### `UploadFile`
    
    `UploadFile` 的属性如下:
    
    * `filename`:上传文件名字符串(`str`),例如, `myimage.jpg`;
    * `content_type`:内容类型(MIME 类型 / 媒体类型)字符串(`str`),例如,`image/jpeg`;
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go

    	jsonpathFile, err := os.CreateTemp("", "printers_jsonpath_flags")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	defer func(tempFile *os.File) {
    		tempFile.Close()
    		os.Remove(tempFile.Name())
    	}(jsonpathFile)
    
    	fmt.Fprintf(jsonpathFile, "{ .metadata.name }\n")
    
    	testCases := []struct {
    		name               string
    		outputFormat       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ClassFileExtractionManager.java

            }
        }
    
        private boolean extractClassFile(final String className) {
            boolean classFileExtracted = false;
    
            final File extractedClassFile = tempFile();
            final String classFileName = new StrBuilder().append(className).append(".class").toString();
            final String classNamePackage = classNamePackage(className);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/request-files.md

    * Es stellt ein tatsächliches Python-<abbr title="Warteschlangenartige, temporäre Datei"><a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a></abbr>-Objekt bereit, welches Sie direkt anderen Bibliotheken übergeben können, die ein dateiartiges Objekt erwarten.
    
    ### `UploadFile`
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 17:58:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top