Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for tempDir (0.19 sec)

  1. internal/lock/lock_test.go

    		}
    	}()
    
    	_, err = LockedOpenFile(f.Name(), os.O_APPEND, 0o600)
    	if err == nil {
    		t.Fatal("Should fail here")
    	}
    }
    
    // Tests lock directory fail.
    func TestLockDirFail(t *testing.T) {
    	d := t.TempDir()
    
    	_, err := LockedOpenFile(d, os.O_APPEND, 0o600)
    	if err == nil {
    		t.Fatal("Should fail here")
    	}
    }
    
    // Tests rwlock methods.
    func TestRWLockedFile(t *testing.T) {
    	f, err := os.CreateTemp("", "lock")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    	tmpDir := t.TempDir()
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(context.Background(), volume)
    	if _, err := disk.readMetadata(context.Background(), pathJoin(tmpDir, volume, object)); err != errFileNameTooLong {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  3. misc/go_android_exec/main.go

    func runMain() (int, error) {
    	// Concurrent use of adb is flaky, so serialize adb commands.
    	// See https://github.com/golang/go/issues/23795 or
    	// https://issuetracker.google.com/issues/73230216.
    	lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock")
    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  4. internal/store/queuestore_test.go

    	"path/filepath"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    type TestItem struct {
    	Name     string `json:"Name"`
    	Property string `json:"property"`
    }
    
    var (
    	// TestDir
    	queueDir = filepath.Join(os.TempDir(), "minio_test")
    	// Sample test item.
    	testItem = TestItem{Name: "test-item", Property: "property"}
    	// Ext for test item
    	testItemExt = ".test"
    )
    
    // Initialize the queue store.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 04 17:52:24 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin_dryrun_test.go

    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			// TODO(bianpengyuan): How do we test ipv6 rules?
    			getNs = generateMockGetNsFunc(testSandboxDirectory)
    			tmpDir := t.TempDir()
    			outputFilePath := filepath.Join(tmpDir, "output.txt")
    			if _, err := os.Create(outputFilePath); err != nil {
    				t.Fatalf("Failed to create temp file for IPTables rule output: %v", err)
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

        if (project.hasProperty("teamcity")) {
            @Suppress("UNCHECKED_CAST") val teamcity = project.property("teamcity") as MutableMap<String, Any>
            teamcity["teamcity.build.tempDir"] = ""
        }
    }
    
    fun Project.isPerformanceProject() = setOf("build-scan-performance", "performance").contains(name)
    
    /**
     * Whether the project supports running with predictive test selection.
     *
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Jan 17 13:36:27 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  7. cmd/format-erasure_test.go

    		t.Fatalf("expected value true, got %t", ok)
    	}
    }
    
    // Tests xl format migration.
    func TestFormatErasureMigrate(t *testing.T) {
    	// Get test root.
    	rootPath := t.TempDir()
    
    	m := &formatErasureV1{}
    	m.Format = formatBackendErasure
    	m.Version = formatMetaVersionV1
    	m.Erasure.Version = formatErasureVersionV1
    	m.Erasure.Disk = mustGetUUID()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  8. cmd/storage-rest_test.go

    	}()
    	// tg[0] = local, tg[1] = remote
    
    	// Remote URL
    	url, err := xnet.ParseHTTPURL(tg.Servers[1].URL)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	url.Path = t.TempDir()
    
    	globalMinioHost, globalMinioPort = mustSplitHostPort(url.Host)
    
    	endpoint, err := NewEndpoint(url.String())
    	if err != nil {
    		t.Fatalf("NewEndpoint failed %v", endpoint)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. api/go1.18.txt

    pkg testing, method (*F) Skip(...interface{})
    pkg testing, method (*F) SkipNow()
    pkg testing, method (*F) Skipf(string, ...interface{})
    pkg testing, method (*F) Skipped() bool
    pkg testing, method (*F) TempDir() string
    pkg testing, type F struct
    pkg testing, type InternalFuzzTarget struct
    pkg testing, type InternalFuzzTarget struct, Fn func(*F)
    pkg testing, type InternalFuzzTarget struct, Name string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  10. src/archive/tar/tar_test.go

    		t.Errorf("ModTime = %v; want %v", g, e)
    	}
    }
    
    func TestFileInfoHeaderSymlink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    
    	tmpdir := t.TempDir()
    
    	link := filepath.Join(tmpdir, "link")
    	target := tmpdir
    	if err := os.Symlink(target, link); err != nil {
    		t.Fatal(err)
    	}
    	fi, err := os.Lstat(link)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top