Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tempDir (0.18 sec)

  1. 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)
  2. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // fixture to create new directories in `SetUp`. Each directory will reside in
    // `::testing::TempDir()`, will use a RNG component and the test name. This
    // ensures that two consecutive runs are unlikely to clash.
    class ModularFileSystemTest : public ::testing::TestWithParam<std::string> {
     public:
      // Initializes `root_dir_` to a unique value made of `::testing::TempDir()`, a
      // static random value unique for all the tests in one invocation, and the
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Assumptions
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Timeout
    import org.junit.jupiter.api.io.TempDir
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ArgumentsSource
    
    class FileSystemParamProvider : SimpleProvider() {
      override fun arguments() =
        listOf(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    		0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x39, 0x00,
    		0x00, 0x00, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00,
    	}
    
    	// Read in the archive with the OpenReader interface
    	name := filepath.Join(t.TempDir(), "test.zip")
    	err := os.WriteFile(name, data, 0644)
    	if err != nil {
    		t.Fatalf("Unable to write out the bugos zip entry")
    	}
    	r, err := OpenReader(name)
    	if r != nil {
    		defer r.Close()
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    // chance the file doesn't exist yet.
    var (
    	randN  uint32
    	randmu sync.Mutex
    )
    
    // Temp files created in default Tmp dir
    var globalTestTmpDir = os.TempDir()
    
    // reseed - returns a new seed every time the function is called.
    func reseed() uint32 {
    	return uint32(time.Now().UnixNano() + int64(os.Getpid()))
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  6. cmd/object-api-listobjects_test.go

    	return obj
    }
    
    // BenchmarkListObjects - Run ListObject Repeatedly and benchmark.
    func BenchmarkListObjects(b *testing.B) {
    	// Make a temporary directory to use as the obj.
    	directory := b.TempDir()
    
    	// Create the obj.
    	obj := initFSObjectsB(directory, b)
    
    	bucket := "ls-benchmark-bucket"
    	// Create a bucket.
    	err := obj.MakeBucket(context.Background(), bucket, MakeBucketOptions{})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top