Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 367 for tempdir (0.12 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

                import spock.lang.Specification
                import spock.lang.TempDir
                import org.gradle.testkit.runner.GradleRunner
                import org.gradle.testkit.runner.TaskOutcome
    
                class TestkitTestPluginFunctionalTest extends Specification {
                    @TempDir
                    private File projectDir
    
                    private getBuildFile() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	if err != nil {
    		t.Fatalf("error getting wd: %v", err)
    	}
    	srcDir := filepath.Join(wd, "testdata", "pgo", "devirtualize")
    
    	// Copy the module to a scratch location so we can add a go.mod.
    	dir := t.TempDir()
    	if err := os.Mkdir(filepath.Join(dir, "mult.pkg"), 0755); err != nil {
    		t.Fatalf("error creating dir: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. internal/mountinfo/mountinfo_linux_test.go

    		/dev/1    /path/to/1   type1	flags 1 1
    		/dev/2 /path/to/1/2 type2 flags,1,2=3 2 2
                    /dev/3 /path/to/1.1 type3 flags,1,2=3 3 3
    		`
    	var err error
    	dir := t.TempDir()
    	mountsPath := filepath.Join(dir, "mounts")
    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Failure case where we detected successfully cross device mounts.
    	{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/elf_test.go

    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"sort"
    	"strings"
    	"testing"
    )
    
    func TestDynSymShInfo(t *testing.T) {
    	t.Parallel()
    	testenv.MustHaveGoBuild(t)
    	dir := t.TempDir()
    
    	const prog = `
    package main
    
    import "net"
    
    func main() {
    	net.Dial("", "")
    }
    `
    	src := filepath.Join(dir, "issue33358.go")
    	if err := os.WriteFile(src, []byte(prog), 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. cmd/bitrot_test.go

    package cmd
    
    import (
    	"context"
    	"io"
    	"testing"
    )
    
    func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) {
    	tmpDir := t.TempDir()
    
    	volume := "testvol"
    	filePath := "testfile"
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(context.Background(), volume)
    
    	writer := newBitrotWriter(disk, "", volume, filePath, 35, bitrotAlgo, 10)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. cni/pkg/pluginlistener/listener_test.go

    import (
    	"context"
    	"net"
    	"path/filepath"
    	"testing"
    
    	"google.golang.org/grpc"
    	"google.golang.org/grpc/credentials/insecure"
    )
    
    func TestCNIListener(t *testing.T) {
    	f := filepath.Join(t.TempDir(), "test")
    	l, err := NewListener(f)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	defer l.Close()
    	conn, err := connect(f)
    	if err != nil {
    		t.Fatalf("failed to connect %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:32 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/objdump/objdump_test.go

    		os.Setenv("GOOS", f[0])
    		os.Setenv("GOARCH", f[1])
    		goarch = f[1]
    	}
    
    	hash := notsha256.Sum256([]byte(fmt.Sprintf("%v-%v-%v-%v", srcfname, flags, printCode, printGnuAsm)))
    	tmp := t.TempDir()
    	hello := filepath.Join(tmp, fmt.Sprintf("hello-%x.exe", hash))
    	args := []string{"build", "-o", hello}
    	args = append(args, flags...)
    	args = append(args, srcfname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractSmokeTest.groovy

                return versions.iterator()
            }
        }
    
        private static final String INIT_SCRIPT_LOCATION = "org.gradle.smoketests.init.script"
    
        @TempDir
        File testProjectDir
        File buildFile
        File settingsFile
        @TempDir
        File buildCacheDir
    
        def setup() {
            buildFile = new File(testProjectDir, defaultBuildFileName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 08:14:32 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/cover/cfg_test.go

    	}
    }
    
    func TestCoverWithCfg(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    
    	t.Parallel()
    
    	// Subdir in testdata that has our input files of interest.
    	tpath := filepath.Join("testdata", "pkgcfg")
    	dir := tempDir(t)
    	instdira := filepath.Join(dir, "insta")
    	if err := os.Mkdir(instdira, 0777); err != nil {
    		t.Fatal(err)
    	}
    
    	scenarios := []struct {
    		mode, gran string
    	}{
    		{
    			mode: "count",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                import org.junit.jupiter.api.io.TempDir;
    
                import java.io.File;
                import java.io.IOException;
                import java.nio.file.Files;
    
                import static org.junit.jupiter.api.Assertions.assertTrue;
    
                public class PublishedApiTestPluginTest {
    
                    @TempDir
                    File testProjectDir;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top