- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 157 for writeTime (0.13 sec)
-
test/fixedbugs/issue16037_run.go
} dir, err := ioutil.TempDir("", "issue16037-") if err != nil { log.Fatal(err) } defer os.RemoveAll(dir) path := filepath.Join(dir, "ridiculous_number_of_fields.go") if err := ioutil.WriteFile(path, buf.Bytes(), 0664); err != nil { log.Fatal(err) } out, err := exec.Command("go", "build", "-o="+filepath.Join(dir, "out"), path).CombinedOutput() if err != nil { log.Fatalf("build failed: %v\n%s", err, out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
test/fixedbugs/issue11771.go
var buf bytes.Buffer fmt.Fprintln(&buf, ` package main func main() { } `) fmt.Fprintln(&buf, "//go:nowritebarrier\r") fmt.Fprintln(&buf, ` func x() { } `) if err := ioutil.WriteFile(filepath.Join(dir, "x.go"), buf.Bytes(), 0666); err != nil { log.Fatal(err) } cmd := exec.Command("go", "tool", "compile", "-p=p", "x.go") cmd.Dir = dir output, err := cmd.CombinedOutput() if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
test/fixedbugs/issue33555.go
} fmt.Fprintf(&buf, fnlast, count) dir, err := ioutil.TempDir("", "issue33555") if err != nil { return err } defer os.RemoveAll(dir) fn := filepath.Join(dir, "x.go") if err := ioutil.WriteFile(fn, buf.Bytes(), 0644); err != nil { return err } out, err := exec.Command("go", "run", fn).CombinedOutput() if err != nil { return err } want := strconv.Itoa(count + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/Stage1BlocksAccessorClassPath.kt
import org.gradle.internal.snapshot.ValueSnapshot import org.gradle.kotlin.dsl.* import org.gradle.kotlin.dsl.cache.KotlinDslWorkspaceProvider import org.gradle.kotlin.dsl.concurrent.IO import org.gradle.kotlin.dsl.concurrent.writeFile import org.gradle.kotlin.dsl.support.bytecode.InternalName import org.gradle.kotlin.dsl.support.bytecode.newClassTypeOf import java.io.File import javax.inject.Inject /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 18:58:57 UTC 2023 - 8K bytes - Viewed (0) -
src/runtime/trace/trace_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/go/go_unix_test.go
// we compare the file created by "go build" against a file written explicitly // by os.WriteFile. // // (See https://go.dev/issue/62724, https://go.dev/issue/17909.) control := tg.path("control") tg.creatingTemp(control) if err := os.WriteFile(control, []byte("#!/bin/sh\nexit 0"), 0777); err != nil { t.Fatal(err) } cfi, err := os.Stat(control) if err != nil { t.Fatal(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 19 16:17:55 UTC 2023 - 3.5K bytes - Viewed (0) -
test/fixedbugs/issue52127.go
panic(err) } defer os.RemoveAll(dir) args := []string{"go", "build"} write := func(prefix string, i int, data string) { filename := filepath.Join(dir, fmt.Sprintf("%s%d.go", prefix, i)) if err := os.WriteFile(filename, []byte(data), 0o644); err != nil { panic(err) } args = append(args, filename) } for i := 0; i < 100; i++ { write("a", i, `package p `) } for i := 0; i < 100; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLock.java
import java.io.Closeable; import java.io.File; public interface FileLock extends Closeable, FileAccess { /** * Returns true if the most recent mutation method ({@link #updateFile(Runnable)} or {@link #writeFile(Runnable)} attempted by any process succeeded * (ie a process did not crash while updating the target file). * * Returns false if no mutation method has ever been called for the target file. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
src/internal/coverage/cfile/ts_test.go
// present in the coverage report from F. func genAuxMeta(t *testing.T, dstdir string) (string, string) { // Do a GOCOVERDIR=<tmp> go run hello.go src := filepath.Join(dstdir, "hello.go") if err := os.WriteFile(src, []byte(hellogo), 0777); err != nil { t.Fatalf("write failed: %v", err) } args := []string{"run", "-covermode=" + testing.CoverMode(), src} cmd := exec.Command(testenv.GoToolPath(t), args...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 5.2K bytes - Viewed (0) -
build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/tasks/CodeGenerationTask.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:26 UTC 2023 - 1.6K bytes - Viewed (0)