- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 913 for tempdir (0.2 sec)
-
platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/src/functionalTest/groovy/org/myorg/UrlVerifierPluginFunctionalTest.groovy
package org.myorg import org.gradle.testkit.runner.GradleRunner import spock.lang.Specification import spock.lang.TempDir import static org.gradle.testkit.runner.TaskOutcome.SUCCESS class UrlVerifierPluginFunctionalTest extends Specification { @TempDir File testProjectDir File buildFile def setup() { buildFile = new File(testProjectDir, 'build.gradle') buildFile << """ plugins {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1K bytes - Viewed (0) -
platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/groovy/spock/PluginFunctionalTest.groovy.template
${fileComment.multilineComment}${packageDecl.statement} import spock.lang.Specification import spock.lang.TempDir import org.gradle.testkit.runner.GradleRunner /** * A simple functional test for the '${pluginId.value}' plugin. */ class ${className.javaIdentifier} extends Specification { @TempDir private File projectDir private getBuildFile() { new File(projectDir, "build.gradle") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 26 19:39:09 UTC 2023 - 979 bytes - Viewed (0) -
pkg/volume/configmap/configmap_test.go
tempDir, err := ioutil.TempDir("", "configmap_volume_test.") if err != nil { t.Fatalf("can't make a temp rootdir: %v", err) } return tempDir, volumetest.NewFakeVolumeHost(t, tempDir, clientset, emptydir.ProbeVolumePlugins()) } func TestCanSupport(t *testing.T) { pluginMgr := volume.VolumePluginMgr{} tempDir, host := newTestHost(t, nil) defer os.RemoveAll(tempDir)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 19.9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy
package org.gradle.sample import org.gradle.testkit.runner.GradleRunner import spock.lang.TempDir import spock.lang.Specification import static org.gradle.testkit.runner.TaskOutcome.* class BuildLogicFunctionalTest extends Specification { @TempDir File testProjectDir File settingsFile File buildFile def setup() { settingsFile = new File(testProjectDir, 'settings.gradle')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/test/groovy/org/example/BuildLogicFunctionalTest.groovy
package org.example import org.gradle.testkit.runner.GradleRunner import spock.lang.Specification import spock.lang.TempDir import static org.gradle.testkit.runner.TaskOutcome.* class BuildLogicFunctionalTest extends Specification { @TempDir File testProjectDir File buildFile def setup() { new File(testProjectDir, 'settings.gradle') << "" buildFile = new File(testProjectDir, 'build.gradle') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/fds_test.go
if err != nil { t.Fatal(err) } i, err := os.CreateTemp(t.TempDir(), "fds-input") if err != nil { t.Fatal(err) } if _, err := i.Write([]byte("stdin")); err != nil { t.Fatal(err) } if err := i.Close(); err != nil { t.Fatal(err) } o, err := os.CreateTemp(t.TempDir(), "fds-output") if err != nil { t.Fatal(err) } outputPath := o.Name()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 25 16:33:33 UTC 2023 - 1.4K bytes - Viewed (0) -
testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ArchiveTreePerformanceTest.groovy
class ArchiveTreePerformanceTest extends AbstractCrossVersionPerformanceTest { private static TestFile tempDir private static TestFile archiveContentsDir def setupSpec() { tempDir = new TestFile("build/tmp/tmp-archive-performance") archiveContentsDir = tempDir.file("tmp-archive-contents") if (!archiveContentsDir.exists()) { generateArchiveContents(archiveContentsDir)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 11:42:52 UTC 2024 - 5.6K bytes - Viewed (0) -
src/runtime/signal_windows_test.go
t.Logf("%v: %q", cmd, out) return out } cc := goEnv("CC") cgoCflags := goEnv("CGO_CFLAGS") t.Parallel() tmpdir := t.TempDir() dllfile := filepath.Join(tmpdir, "test.dll") exefile := filepath.Join(tmpdir, "gotest.exe") // build go dll cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", dllfile, "-buildmode", "c-shared", "testdata/testwintls/main.go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
src/syscall/syscall_windows_test.go
testenv.MustHaveCGO(t) testenv.MustHaveExecPath(t, "gcc") tmpdir := t.TempDir() // build go dll const dlltext = ` package main import "C" import ( "fmt" ) //export HelloWorld func HelloWorld() { fmt.Println("Hello World") } func main() {} ` dllsrc := filepath.Join(tmpdir, "helloworld.go") err := os.WriteFile(dllsrc, []byte(dlltext), 0644)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 16:33:09 UTC 2023 - 5.7K bytes - Viewed (0) -
src/os/tempfile.go
// Multiple programs or goroutines calling CreateTemp simultaneously will not choose the same file. // The caller can use the file's Name method to find the pathname of the file. // It is the caller's responsibility to remove the file when it is no longer needed. func CreateTemp(dir, pattern string) (*File, error) { if dir == "" { dir = TempDir() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0)