- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 509 for tmpDirs (0.12 sec)
-
src/cmd/internal/obj/x86/pcrelative_test.go
} ` func objdumpOutput(t *testing.T, mname, source string) []byte { tmpdir, err := os.MkdirTemp("", mname) if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) err = os.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte(fmt.Sprintf("module %s\n", mname)), 0666) if err != nil { t.Fatal(err) } tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s")) if err != nil { t.Fatal(err) } defer tmpfile.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 23:16:01 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_test.go
} } type fakeDiskManager struct { tmpDir string } func NewFakeDiskManager() *fakeDiskManager { return &fakeDiskManager{ tmpDir: utiltesting.MkTmpdirOrDie("iscsi_test"), } } func (fake *fakeDiskManager) Cleanup() { os.RemoveAll(fake.tmpDir) } func (fake *fakeDiskManager) MakeGlobalPDName(disk iscsiDisk) string { return fake.tmpDir }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 16.4K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/swift/internal/DefaultSwiftComponentTest.groovy
} def "uses source layout convention when no other source files specified"() { def f1 = tmpDir.createFile("src/main/swift/a.swift") def f2 = tmpDir.createFile("src/main/swift/nested/b.swift") tmpDir.createFile("src/main/swift/ignore-me.cpp") tmpDir.createFile("src/main/other/c.swift") def f4 = tmpDir.createFile("d.swift") expect: component.source.empty
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 4.2K bytes - Viewed (0) -
src/path/filepath/example_unix_walk_test.go
) func prepareTestDirTree(tree string) (string, error) { tmpDir, err := os.MkdirTemp("", "") if err != nil { return "", fmt.Errorf("error creating temp directory: %v\n", err) } err = os.MkdirAll(filepath.Join(tmpDir, tree), 0755) if err != nil { os.RemoveAll(tmpDir) return "", err } return tmpDir, nil } func ExampleWalk() { tmpDir, err := prepareTestDirTree("dir/to/walk/skip") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.5K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/configure/NativeBinaryRulesTest.groovy
toolProvider.getExecutableName("base_name") >> "exe_name" and: NativeBinaryRules.assignTools(binary, toolChains, tmpDir.testDirectory) then: executableFile.file == tmpDir.testDirectory.file("exe/comp_name/exe_name") installation.directory == tmpDir.testDirectory.file("install/comp_name") } def "test shared library"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/bug.txt
[!GOOS:linux] skip [short] skip go install go build -o $TMPDIR/go ./go env BROWSER=$GOPATH/bin/browser PATH=$TMPDIR:$PATH go bug exists $TMPDIR/browser grep '^go version' $TMPDIR/browser grep '^GOROOT/bin/go version: go version' $TMPDIR/browser grep '^GOROOT/bin/go tool compile -V: compile version' $TMPDIR/browser grep '^uname -sr: Linux' $TMPDIR/browser -- go.mod -- module browser -- main.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 963 bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/FileHierarchySetTest.groovy
def set = from() !set.contains(tmpDir.file("any")) } def "creates from collection containing single file"() { def dir = tmpDir.createDir("dir") expect: def set = from(dir) set.contains(dir) set.contains(dir.file("child")) !set.contains(dir.parentFile) !set.contains(tmpDir.file("dir2")) !set.contains(tmpDir.file("d")) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:38 UTC 2024 - 12.6K bytes - Viewed (0) -
platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy
public class ManifestUtilTest extends Specification { @Rule final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def jarFile = tmpDir.file("mydir/jarfile.jar").createFile() def "creates manifest classpath with relative urls"() { when: def classpathFiles = [tmpDir.file('mydir/jar1.jar'), tmpDir.file('mydir/nested/jar2.jar')] then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 06:16:07 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy
deleter = FileTime.deleterWithDeletionAction() { file -> return DeletionAction.FAILURE } and: def target = isDirectory ? tmpDir.createDir("target") : tmpDir.createFile("target") target = isSymlink ? tmpDir.file("link").tap { Files.createSymbolicLink(delegate.toPath(), target.toPath()) } : target when: deleter.deleteRecursively(target) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 12:40:48 UTC 2024 - 14.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/DefaultFileCollectionSnapshotterTest.groovy
class DefaultFileCollectionSnapshotterTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def snapshotter = TestFiles.fileCollectionSnapshotter() def "snapshots a tree with file as root as RegularFileSnapshot"() { given: def tempDir = tmpDir.createDir('tmpDir') def file = tempDir.file('testFile') file.text = "content" when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 12 16:25:23 UTC 2022 - 7.1K bytes - Viewed (0)