- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 167 for tmpfiles (0.16 sec)
-
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) -
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) -
platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/JavadocOptionFileWriterTest.groovy
setup: def tempFile = temporaryFolder.createFile("optionFile") def optionsMap = createOptionsMap() when: _ * optionfile.options >> optionsMap _ * optionfile.getSourceNames() >> new OptionLessStringsJavadocOptionFileOption([]); javadocOptionFileWriter.write(tempFile) then: tempFile.text == toPlatformLineSeparators("""-key1 'value1' -key2 'value2'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.4K bytes - Viewed (0) -
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) -
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) -
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) -
src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java
final File tempFile = ComponentUtil.getSystemHelper().createTempFile("esreq_", ".json"); try (final InputStream in = response.getContentAsStream()) { CopyUtil.copy(in, tempFile); } catch (final Exception e1) { if (tempFile != null && tempFile.exists() && !tempFile.delete()) {
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 6.2K bytes - Viewed (0) -
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) -
samples/ambient-argo/documentation/argo-reference-arch.dot
} fontsize="32" label = "Application Cluster"; style=filled color=deepskyblue } edge[weight=5] appfiles[label="application/*"] app -> appfiles [constraint=false] appfiles -> appcontents appfiles -> appwp appfiles -> ig appfiles -> nwc ztunchart[label="ztunnel",class="helm"] ztunnel -> ztunchart -> ztunnelds istiodchart[label="istiod",class="helm"] cpt -> istiodchart
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Nov 04 01:54:50 UTC 2023 - 2.1K bytes - Viewed (0) -
maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java
@Test void testEquals() throws Exception { File tempFile = createTempFile("pomTest"); FileModelSource instance = new FileModelSource(tempFile); assertFalse(instance.equals(null)); assertFalse(instance.equals(new Object())); assertTrue(instance.equals(instance)); assertTrue(instance.equals(new FileModelSource(tempFile))); } @Test
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 2.4K bytes - Viewed (0)