- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 102 for tempdir (0.22 sec)
-
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
} private Path tempDir; @Override protected void setUp() throws Exception { tempDir = Files.createTempDirectory("MoreFilesTest"); } @Override protected void tearDown() throws Exception { if (tempDir != null) { // delete tempDir and its contents Files.walkFileTree( tempDir, new SimpleFileVisitor<Path>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 26.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
import org.gradle.util.internal.TextUtil import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.io.TempDir import java.io.File import java.io.StringWriter abstract class AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest { @TempDir lateinit var projectDir: File lateinit var firstAcceptedApiChangesFile: File lateinit var secondAcceptedApiChangesFile: File
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 6K bytes - Viewed (0) -
build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt
* limitations under the License. */ package gradlebuild.basics.tasks import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test import org.junit.jupiter.api.io.TempDir import java.nio.file.FileVisitResult import java.nio.file.Files import java.nio.file.Path import java.nio.file.SimpleFileVisitor import java.nio.file.attribute.BasicFileAttributes import java.util.jar.JarEntry
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Oct 11 19:14:16 UTC 2024 - 5K bytes - Viewed (0) -
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 Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/io/TempFileCreator.java
String baseName = System.currentTimeMillis() + "-"; for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) { File tempDir = new File(baseDir, baseName + counter); if (tempDir.mkdir()) { return tempDir; } } throw new IllegalStateException( "Failed to create directory within " + TEMP_DIR_ATTEMPTS
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0) -
internal/disk/disk_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 31 22:20:48 UTC 2023 - 1.1K bytes - Viewed (0) -
tests/tests_test.go
log.Println("testing tidb...") if dbDSN == "" { dbDSN = tidbDSN } db, err = gorm.Open(mysql.Open(dbDSN), cfg) default: log.Println("testing sqlite3...") db, err = gorm.Open(sqlite.Open(filepath.Join(os.TempDir(), "gorm.db")), cfg) if err == nil { db.Exec("PRAGMA foreign_keys = ON") } } if err != nil { return } if debug := os.Getenv("DEBUG"); debug == "true" {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Sep 30 03:21:19 UTC 2024 - 3.3K bytes - Viewed (0) -
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: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Feb 08 21:58:32 UTC 2024 - 1.4K bytes - Viewed (0) -
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 Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
cni/test/install_cni.go
return value } return fallback } func mktemp(dir, prefix string, t *testing.T) string { t.Helper() tempDir, err := os.MkdirTemp(dir, prefix) if err != nil { t.Fatalf("Couldn't get current working directory, err: %v", err) } t.Logf("Created temporary dir: %v", tempDir) return tempDir } func ls(dir string, t *testing.T) []string { files, err := os.ReadDir(dir) t.Helper() if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 11.3K bytes - Viewed (0)