- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 161 for tmpDirs (0.09 sec)
-
pkg/volume/local/local_test.go
} func TestCanSupport(t *testing.T) { tmpDir, plug := getPlugin(t) defer os.RemoveAll(tmpDir) if !plug.CanSupport(getTestVolume(false, tmpDir, false, nil)) { t.Errorf("Expected true") } } func TestGetAccessModes(t *testing.T) { tmpDir, plug := getPersistentPlugin(t) defer os.RemoveAll(tmpDir) modes := plug.GetAccessModes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 10:53:39 UTC 2023 - 22.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DistributionFactoryTest.groovy
def libB = tmpDir.createFile("lib/b.jar") expect: def dist = factory.getDistribution(tmpDir.testDirectory) dist.getToolingImplementationClasspath(progressLoggerFactory, buildProgressListener, connectionParameters, cancellationToken).asFiles as Set == [libA, libB] as Set } def failsWhenInstallationDirectoryDoesNotExist() { TestFile distDir = tmpDir.file('unknown')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 11.7K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/VisualStudioVersionDeterminerTest.groovy
List<VisualStudioInstallCandidate> windowsRegistryInstalls = [] def "can determine a VS2017 version of an install from command line"() { def dir1 = tmpDir.createDir("dir1") def dir2 = tmpDir.createDir("dir2") def dir3 = tmpDir.createDir("dir3") given: vswhereInstall(dir1, "15.3.26730.16") vswhereInstall(dir2, "14.0") vswhereInstall(dir3, "12.0") when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 16.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/AbsolutePathFileCollectionFingerprinterTest.groovy
@Rule public final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def "retains order of files in the snapshot"() { given: TestFile file = tmpDir.createFile('file1') TestFile file2 = tmpDir.createFile('file2') TestFile file3 = tmpDir.createFile('file3') when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 20 16:00:23 UTC 2022 - 9.9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certs_test.go
} for _, test := range tests { t.Run("", func(t *testing.T) { tmpdir := testutil.SetupTempDir(t) os.MkdirAll(tmpdir+"/etcd", os.ModePerm) defer os.RemoveAll(tmpdir) cfg := &kubeadmapi.ClusterConfiguration{ CertificatesDir: tmpdir, } // created expected keys certstestutil.WritePKIFiles(t, tmpdir, test.files) // executes create func
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 23.3K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
func mktmpdir(t *testing.T) string { tmpdir, err := os.MkdirTemp("", "gcimporter_test") if err != nil { t.Fatal("mktmpdir:", err) } if err := os.Mkdir(filepath.Join(tmpdir, "testdata"), 0700); err != nil { os.RemoveAll(tmpdir) t.Fatal("mktmpdir:", err) } return tmpdir } func TestImportTestdata(t *testing.T) { // This package only handles gc export data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go
func TestWriteCert(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir") } defer os.RemoveAll(tmpdir) caCert := &x509.Certificate{} actual := WriteCert(tmpdir, "foo", caCert) if actual != nil { t.Errorf( "failed WriteCert with an error: %v", actual, ) } } func TestWriteCertBundle(t *testing.T) { tmpdir, err := os.MkdirTemp("", "")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 22.5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy
import org.gradle.util.Matchers import org.gradle.util.SetSystemProperties import org.junit.Rule import spock.lang.Specification class JvmTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) @Rule SetSystemProperties sysProp = new SetSystemProperties() OperatingSystem os = Mock() { getExecutableName(_) >> { String name ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 00:09:57 UTC 2024 - 15.4K bytes - Viewed (0) -
pkg/volume/volume_linux_test.go
t.Fatalf("error reading permission stats for tmpdir: %s", tmpDir) } var expectedGid int64 = int64(stat.Gid) err = test.setupFunc(tmpDir) if err != nil { t.Errorf("for %s error running setup with: %v", test.description, err) } mounter := &localFakeMounter{path: "FAKE_DIR_DOESNT_EXIST"} // SetVolumeOwnership() must rely on tmpDir err = SetVolumeOwnership(mounter, tmpDir, &expectedGid, test.fsGroupChangePolicy, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy
import spock.lang.Specification class LocalFileStandInExternalResourceTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def "can apply ContentAndMetadataAction to file contents"() { def file = tmpDir.createFile("content") file.text = "1234" expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 14K bytes - Viewed (0)