Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 948 for tempdir (0.15 sec)

  1. 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);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 10 20:52:48 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED,
            511 // network authentication required
        ]
    
        @Rule
        HttpServer server = new HttpServer()
        @Rule
        TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(getClass())
    
        BuildCacheServiceFactory.Describer buildCacheDescriber
        HttpClientHelper.Factory httpClientHelperFactory = HttpClientHelper.Factory.createFactory(new DocumentationRegistry())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. pkg/file/file_test.go

    import (
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func copyTest(t *testing.T, copyFn func(srcFilepath, targetDir, targetFilename string) error) {
    	t.Helper()
    	d := t.TempDir()
    	if err := os.WriteFile(filepath.Join(d, "in"), []byte("hello world"), 0o750); err != nil {
    		t.Fatal(err)
    	}
    	if err := copyFn(filepath.Join(d, "in"), d, "out"); err != nil {
    		t.Fatal(err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 19:10:54 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/ld_test.go

    func main() {
    	println(runtime.MemProfileRate)
    }
    `,
    			"524288",
    		},
    	}
    	for _, tt := range tests {
    		tt := tt
    		t.Run(tt.name, func(t *testing.T) {
    			t.Parallel()
    			tempDir := t.TempDir()
    			src := filepath.Join(tempDir, "x.go")
    			if err := os.WriteFile(src, []byte(tt.prog), 0644); err != nil {
    				t.Fatal(err)
    			}
    			cmd := testenv.Command(t, testenv.GoToolPath(t), "run", src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. src/os/tempfile_test.go

    		t.Errorf("TempDir error = %#v; want PathError for path %q satisfying IsNotExist", err, badDir)
    	}
    }
    
    func TestMkdirTempBadPattern(t *testing.T) {
    	t.Parallel()
    
    	tmpDir, err := MkdirTemp("", t.Name())
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer RemoveAll(tmpDir)
    
    	const sep = string(PathSeparator)
    	tests := []struct {
    		pattern string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/TemporaryScriptFiles.kt

        createTemporaryDirectory("gradle-kotlin-dsl-", null).let { tempDir ->
            try {
                val tempFile = canonicalScriptFileFor(tempDir, scriptPath, scriptText)
                try {
                    action(tempFile)
                } finally {
                    tempFile.delete()
                }
            } finally {
                tempDir.delete()
            }
        }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. pkg/kubelet/nodeshutdown/storage_test.go

    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    )
    
    func TestLocalStorage(t *testing.T) {
    	var localStorageStateFileName = "graceful_node_shutdown_state"
    	tempdir := os.TempDir()
    	path := filepath.Join(tempdir, localStorageStateFileName)
    	l := localStorage{
    		Path: path,
    	}
    	now := time.Now()
    	want := state{
    		StartTime: now,
    		EndTime:   now,
    	}
    	err := l.Store(want)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 11 09:31:10 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy

     */
    
    package org.gradle.api.internal.changedetection.state
    
    import spock.lang.Specification
    import spock.lang.TempDir
    
    import org.gradle.api.internal.changedetection.state.LineEndingContentFixture as content
    
    class LineEndingNormalizingInputStreamHasherTest extends Specification {
        @TempDir
        File tempDir
    
        def hasher = new LineEndingNormalizingInputStreamHasher()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. pkg/test/util/yml/cache_test.go

    }
    
    func TestCache_GetFileFor_Empty(t *testing.T) {
    	g := NewWithT(t)
    	d := t.TempDir()
    	t.Logf("Test Dir: %q", d)
    
    	c := NewCache(d)
    
    	f := c.GetFileFor(CacheKey{})
    	g.Expect(f).To(BeEmpty())
    }
    
    func TestCache_Delete(t *testing.T) {
    	g := NewWithT(t)
    	d := t.TempDir()
    	t.Logf("Test Dir: %q", d)
    
    	c := NewCache(d)
    
    	_, err := c.Apply(gateway)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. tools/bug-report/pkg/bugreport/bugreport.go

    	}
    	outPath := filepath.Join(outDir, "bug-report.tar.gz")
    
    	if !config.DryRun {
    		common.LogAndPrintf("Creating an archive at %s.\n", outPath)
    		archiveDir := archive.DirToArchive(tempDir)
    		if tempDir != "" {
    			archiveDir = tempDir
    		}
    		curTime = time.Now()
    		err := archive.Create(archiveDir, outPath)
    		fmt.Printf("Time used for creating the tar file is %v.\n", time.Since(curTime))
    		if err != nil {
    			return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top