- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for tempDir (0.35 sec)
-
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) -
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) -
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) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
* the tear-down for this test. Subsequent invocations of this method will return the same * directory. */ protected final File getTempDir() throws IOException { if (tempDir == null) { tempDir = createTempDir(); } return tempDir; } /** * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will * be deleted in the tear-down for this test. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/IoTestCase.java
* the tear-down for this test. Subsequent invocations of this method will return the same * directory. */ protected final File getTempDir() throws IOException { if (tempDir == null) { tempDir = createTempDir(); } return tempDir; } /** * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will * be deleted in the tear-down for this test. */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
tensorflow/c/env_test.cc
TEST(TestEnv, TestDirHandling) { TF_StringStream* tempdirs = TF_GetLocalTempDirectories(); const char* tempdir; bool found = false; while (TF_StringStreamNext(tempdirs, &tempdir)) { found = true; TF_Status* s = TF_NewStatus(); ::tensorflow::string dirpath = ::tensorflow::io::JoinPath(tempdir, "somedir"); TF_CreateDir(dirpath.c_str(), s);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy
import japicmp.model.JApiClass import javassist.ClassPool import me.champeau.gradle.japicmp.report.ViolationCheckContext import spock.lang.Specification import spock.lang.TempDir abstract class AbstractContextAwareRuleSpecification extends Specification { @TempDir File testDir ViolationCheckContext context = new ViolationCheckContext() { Map userData = [seenApiChanges: [] as Set]
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Oct 06 19:15:15 GMT 2022 - 2K bytes - Viewed (0)