- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 102 for tempdir (0.1 sec)
-
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 ->
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.6K 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]
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java
return name; } public void setOfficeManager(final OfficeManager officeManager) { this.officeManager = officeManager; } public void setTempDir(final File tempDir) { this.tempDir = tempDir; } public void setOutputEncoding(final String outputEncoding) { this.outputEncoding = outputEncoding; }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 8.2K bytes - Viewed (0) -
cni/pkg/install/binaries_test.go
}, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { srcDir := t.TempDir() for filename, contents := range c.srcFiles { file.WriteOrFail(t, filepath.Join(srcDir, filename), []byte(contents)) } targetDir := t.TempDir() for filename, contents := range c.existingFiles { file.WriteOrFail(t, filepath.Join(targetDir, filename), []byte(contents)) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 20 18:34:43 UTC 2023 - 2.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt
import org.junit.jupiter.api.Test import org.junit.jupiter.api.io.TempDir @Tag("Slowish") class RelayTest { @TempDir var tempDir: File? = null private val executor = Executors.newCachedThreadPool(threadFactory("RelayTest")) private val metadata: ByteString = "great metadata!".encodeUtf8() private lateinit var file: File @BeforeEach fun setUp() { file = File(tempDir, "test") } @AfterEach fun tearDown() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.1K bytes - Viewed (0) -
cmd/xl-storage_windows_test.go
{"/a/b/c/d/e/f/g", true}, {string(bytes.Repeat([]byte("界"), 85)), true}, // Each path component must be <= 255 bytes long. {string(bytes.Repeat([]byte("界"), 280)), false}, {`/p/q/r/s/t`, true}, } dir := t.TempDir() // Instantiate posix object to manage a disk fs, err := newLocalXLStorage(dir) if err != nil { t.Fatal(err) } // Create volume to use in conjunction with other StorageAPI's file API(s)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Nov 29 06:35:16 UTC 2023 - 2.8K 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) -
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) -
src/cmd/addr2line/addr2line_test.go
} } // This is line 101. The test depends on that. func TestAddr2Line(t *testing.T) { testenv.MustHaveGoBuild(t) tmpDir := t.TempDir() // Build copy of test binary with debug symbols, // since the one running now may not have them. exepath := filepath.Join(tmpDir, "testaddr2line_test.exe") out, err := testenv.Command(t, testenv.GoToolPath(t), "test", "-c", "-o", exepath, "cmd/addr2line").CombinedOutput()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
func getUmask() int { mask := syscall.Umask(0) syscall.Umask(mask) return mask } // Tests if the directory and file creations happen with proper umask. func TestIsValidUmaskVol(t *testing.T) { tmpPath := t.TempDir() testCases := []struct { volName string expectedUmask int }{ {"is-this-valid", getUmask()}, } testCase := testCases[0] // Initialize a new xlStorage layer.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 3.4K bytes - Viewed (0)