- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for TempDir (0.05 sec)
-
cni/pkg/install/install_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for srcFilename, targetFilename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil { t.Fatal(err) } } cfg := &config.InstallConfig{ MountedCNINetDir: tempDir, CNIConfName: c.cniConfName,
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for srcFilename, targetFilename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil { t.Fatal(err) } } cfg.MountedCNINetDir = tempDir var expectedFilepath string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 15.3K bytes - Viewed (0) -
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>() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 27.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java
} public void setOutputExtension(final String outputExtension) { this.outputExtension = outputExtension; } public void setTempDir(final File tempDir) { this.tempDir = tempDir; } public void setCommand(final String command) { this.command = command; } public void setExecutionTimeout(final long executionTimeout) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.6K bytes - Viewed (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
import org.junit.jupiter.api.io.TempDir import java.io.File @EnabledIfEnvironmentVariable(named = "CI", matches = ".*", disabledReason = "Tests rely on setup conditional on CI in gradlebuild.ci-reporting plugin running first, these test should only run if CI env var is present (it's value doesn't matter)") class TestFilesCleanupServiceTest { @TempDir lateinit var projectDir: File private
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 14 12:35:52 UTC 2023 - 10.6K bytes - Viewed (0) -
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) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
if (servletContext.getAttribute(CONTEXT_TEMPDIR_KEY) instanceof final File tempDirFile) { final String tempDir = tempDirFile.getAbsolutePath(); if (tempDir != null && tempDir.length() > 0) { return tempDir; } } return System.getProperty(JAVA_IO_TMPDIR_KEY); } // -----------------------------------------------------
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Oct 23 13:27:21 UTC 2024 - 18.6K 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) -
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) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
import org.gradle.api.Incubating import spock.lang.Specification import spock.lang.TempDir import javax.inject.Inject class PublicAPIRulesTest extends Specification { private final static String TEST_INTERFACE_NAME = 'org.gradle.api.ApiTest' private final static String TEST_INTERFACE_SIMPLE_NAME = 'ApiTest' @TempDir File tmp File sourceFile BinaryCompatibilityRepository repository
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Dec 01 20:12:19 UTC 2023 - 16K bytes - Viewed (0)