- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 99 for tempDir (0.25 sec)
-
cni/pkg/install/cniconfig_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for _, filename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", filepath.Base(filename)), tempDir, filepath.Base(filename)); err != nil { t.Fatal(err) } } cfg := pluginConfig{ mountedCNINetDir: tempDir, cniConfName: c.specifiedConfName,
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed May 17 02:22:22 GMT 2023 - 15.4K bytes - Viewed (0) -
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,
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 11.1K bytes - Viewed (0) -
cni/pkg/install/kubeconfig_test.go
}) } } func TestReplaceInvalidKubeconfigFile(t *testing.T) { tmp := t.TempDir() os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644) constants.ServiceAccountPath = tmp tempDir := t.TempDir() cfg := &config.InstallConfig{ MountedCNINetDir: tempDir, KubeCAFile: kubeCAFilepath, K8sServiceHost: k8sServiceHost, K8sServicePort: k8sServicePort, }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Feb 08 03:52:24 GMT 2024 - 5.1K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
import java.nio.file.Files import org.gradle.api.Action import org.gradle.api.UnknownDomainObjectException import spock.lang.Specification import spock.lang.TempDir class SimpleClassMetaDataRepositoryTest extends Specification { @TempDir File tmpDir final SimpleClassMetaDataRepository<TestDomainObject> repository = new SimpleClassMetaDataRepository<TestDomainObject>() def canAddMetaData() {
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Sat Apr 06 02:21:33 GMT 2024 - 3.8K bytes - Viewed (0) -
cmd/os-readdir_test.go
// Add empty entry slice for this test directory. testResults = append(testResults, result{t.TempDir(), []string{}}) return testResults } // Test to read non-empty directory with only files. func setupTestReadDirFiles(t *testing.T) (testResults []result) { dir := t.TempDir() entries := []string{} for i := 0; i < 10; i++ { name := fmt.Sprintf("file-%d", i)
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 7.5K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
} @Test void testReadModifiedPoms(@TempDir Path tempDir) throws Exception { // TODO a similar test should be created to test the dependency management (basically all usages // of DefaultModelBuilder.getCache() are affected by MNG-6530 FileUtils.copyDirectory(new File("src/test/resources/projects/grandchild-check"), tempDir.toFile()); MavenSession mavenSession = createMavenSession(null);
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Nov 28 17:17:10 GMT 2023 - 18.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestBodyTest.kt
import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.junit.jupiter.api.io.TempDir class RequestBodyTest { private lateinit var filePath: okio.Path @BeforeEach fun setup( @TempDir tempDir: Path, ) { filePath = tempDir.toOkioPath() / "file.txt" } @Test fun testFileDescriptor() { assertOnFileDescriptor { fd ->
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (1) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsIntegrationTest.groovy
import gradlebuild.buildutils.model.ReleasedVersion import spock.lang.Specification import spock.lang.TempDir import java.text.SimpleDateFormat class UpdateReleasedVersionsIntegrationTest extends Specification { def format = new SimpleDateFormat('yyyyMMddHHmmssZ') @TempDir File tmpDir def setup() { format.timeZone = TimeZone.getTimeZone("UTC") }
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Aug 17 08:32:56 GMT 2021 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(CONTEXT_TEMPDIR_KEY); String tempDir = tempDirFile.getAbsolutePath(); if (tempDir == null || tempDir.length() == 0) { tempDir = System.getProperty(JAVA_IO_TMPDIR_KEY); } return tempDir; } // ===================================================================================
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 16.4K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java
tempFile.delete(); assertThat(result, is(true)); } @Test void isMatchingProjectMatchOnDirectoryReturnsTrue(@TempDir File tempDir) { String selector = "maven-core"; final File tempProjectDir = new File(tempDir, "maven-core"); tempProjectDir.mkdir(); final MavenProject mavenProject = createMavenProject("maven-core");
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 8.6K bytes - Viewed (0)