- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 367 for tempdir (0.16 sec)
-
src/cmd/internal/testdir/testdir_test.go
if !found { flags = append(flags, "-d=ssa/check/on") } } tempDir := t.TempDir() err = os.Mkdir(filepath.Join(tempDir, "test"), 0755) if err != nil { t.Fatal(err) } err = os.WriteFile(filepath.Join(tempDir, t.goFile), srcBytes, 0644) if err != nil { t.Fatal(err) } var ( runInDir = tempDir tempDirIsGOPATH = false )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
cni/test/install_cni.go
return value } return fallback } func mktemp(dir, prefix string, t *testing.T) string { t.Helper() tempDir, err := os.MkdirTemp(dir, prefix) if err != nil { t.Fatalf("Couldn't get current working directory, err: %v", err) } t.Logf("Created temporary dir: %v", tempDir) return tempDir } func ls(dir string, t *testing.T) []string { files, err := os.ReadDir(dir) t.Helper() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/kubelet/cm/dra/manager_test.go
}{ { description: "invalid directory path", stateFileDirectory: "", wantErr: true, }, { description: "valid directory path", stateFileDirectory: t.TempDir(), }, } { t.Run(test.description, func(t *testing.T) { manager, err := NewManagerImpl(kubeClient, test.stateFileDirectory, "worker") if test.wantErr { assert.Error(t, err) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:30:29 UTC 2024 - 42K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/DefaultJavaToolchainProvisioningServiceTest.groovy
import org.gradle.jvm.toolchain.internal.install.DefaultJdkCacheDirectory import org.gradle.jvm.toolchain.internal.install.SecureFileDownloader import org.gradle.platform.BuildPlatform import spock.lang.Specification import spock.lang.TempDir import java.util.stream.Collectors import java.util.stream.IntStream class DefaultJavaToolchainProvisioningServiceTest extends Specification {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 23:01:05 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report_test.cc
PassManager pm(ctx_.get()); QuantizeCompositeFunctionsPassOptions options; pm.addPass(createQuantizeCompositeFunctionsPass(options)); const std::string report_file_path = absl::StrCat(testing::TempDir(), "/save_report.txtpb"); pm.addInstrumentation(std::make_unique<SaveQuantizationReportInstrumentation>( report_file_path)); const LogicalResult run_result = pm.run(*module_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 9.2K bytes - Viewed (0) -
src/syscall/getdirentries_test.go
testGetdirentries(t, count) }) } } func testGetdirentries(t *testing.T, count int) { if count > 100 && testing.Short() && os.Getenv("GO_BUILDER_NAME") == "" { t.Skip("skipping in -short mode") } d := t.TempDir() var names []string for i := 0; i < count; i++ { names = append(names, fmt.Sprintf("file%03d", i)) } // Make files in the temp directory for _, name := range names {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/internal/bootstrap_test/reboot_test.go
// directory above the simulated GOROOT. // This mimics the configuration one much have when // building from distro-packaged source code // (see https://go.dev/issue/54852). parent := t.TempDir() dotGit := filepath.Join(parent, ".git") if err := os.Mkdir(dotGit, 000); err != nil { t.Fatal(err) } overlayStart := time.Now() goroot := filepath.Join(parent, "goroot")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go
} dirsToClean = append(dirsToClean, certsDir) if r.CleanupTmpDir() { tempDir := path.Join(kubeadmconstants.KubernetesDir, kubeadmconstants.TempDirForKubeadm) dirsToClean = append(dirsToClean, tempDir) } resetConfigDir(kubeadmconstants.KubernetesDir, dirsToClean, r.DryRun())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 7.1K bytes - Viewed (0) -
testing/internal-performance-testing/src/test/groovy/org/gradle/performance/mutator/ClearArtifactTransformCacheWithoutInstrumentedJarsMutatorTest.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.performance.mutator import spock.lang.Specification import spock.lang.TempDir import static org.gradle.api.internal.initialization.transform.utils.InstrumentationTransformUtils.ANALYSIS_OUTPUT_DIR
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 12:30:06 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/gotemplate/gotemplate_test.go
files: map[string]string{"test.txt": "hello\nworld"}, expected: "hello\n world", }, } { cwd, err := os.Getwd() require.NoError(t, err) t.Run(name, func(t *testing.T) { tmp := t.TempDir() for fileName, fileContent := range tt.files { err := os.WriteFile(path.Join(tmp, fileName), []byte(fileContent), 0666) require.NoError(t, err, "create input file") } defer os.Chdir(cwd)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 22 13:43:42 UTC 2024 - 2.7K bytes - Viewed (0)