Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 111 for someFile (1.62 sec)

  1. pkg/test/framework/components/namespace/namespace.go

    // Get is a utility method that helps in readability of call sites.
    func (g Getter) Get() Instance {
    	return g()
    }
    
    // Future creates a Getter for a variable that namespace that will be set at sometime in the future.
    // This is helpful for configuring a setup chain for a test suite that operates on global variables.
    func Future(ns *Instance) Getter {
    	return func() Instance {
    		return *ns
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 18:12:14 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. build-logic/packaging/src/test/kotlin/gradlebuild/packaging/GradleDistributionInstallTest.kt

                File(this, "all-deps-in-the-world-1.2.2.jar").writeText("stub")
            }
    
            assertSucceeds()
        }
    
        @Test
        fun `does not install to a file`() {
            val file = File(target, "some_file.txt").also {
                it.writeText("some content")
            }
            target = file
    
            assertFails("Install directory $file is not valid: it is actually a file")
            assertTrue(file.exists())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:26 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. src/os/os_test.go

    				}
    				info, err := n.Info()
    				if err != nil {
    					t.Errorf("%s: Info: %v", m, err)
    					continue
    				}
    				if !SameFile(info, lstat) {
    					t.Errorf("%s: Info: SameFile(info, lstat) = false", m)
    				}
    			}
    			if !found {
    				t.Error("could not find", m)
    			}
    		}
    		if s == nil {
    			t.Error("ReadDir returned nil instead of empty slice")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv_test.go

    	if err != nil {
    		t.Fatalf("testenv.GoTool(): %v", err)
    	}
    	t.Logf("testenv.GoTool() = %q", goTool)
    
    	gotInfo, err := os.Stat(goTool)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !os.SameFile(wantInfo, gotInfo) {
    		t.Fatalf("%q is not the same file as %q", absWant, goTool)
    	}
    }
    
    func TestHasGoBuild(t *testing.T) {
    	if !testenv.HasGoBuild() {
    		switch runtime.GOOS {
    		case "js", "wasip1":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        /*
         * Here's the order of events that we want.
         *
         * 1. The client thread begins to block on a get() call to a future.
         * 2. The client thread is interrupted sometime before the result would be
         *   available.
         * 3. We expect the client's get() to throw an InterruptedException.
         * 4. We expect the client thread's interrupt state to be false.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        /*
         * Here's the order of events that we want.
         *
         * 1. The client thread begins to block on a get() call to a future.
         * 2. The client thread is interrupted sometime before the result would be
         *   available.
         * 3. We expect the client's get() to throw an InterruptedException.
         * 4. We expect the client thread's interrupt state to be false.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. src/os/exec/lp_windows.go

    				// out that the explicit one doesn't match.
    				dotfi, dotfiErr := os.Lstat(dotf)
    				fi, fiErr := os.Lstat(f)
    				if dotfiErr != nil || fiErr != nil || !os.SameFile(dotfi, fi) {
    					return dotf, dotErr
    				}
    			}
    
    			if !filepath.IsAbs(f) {
    				if execerrdot.Value() != "0" {
    					// If this is the same relative path that we already found,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/peer-rest-client.go

    	go func() {
    		for {
    			client.doListen(ctx, listenCh, v)
    			select {
    			case <-ctx.Done():
    				return
    			default:
    				// There was error in the REST request, retry after sometime as probably the peer is down.
    				time.Sleep(5 * time.Second)
    			}
    		}
    	}()
    }
    
    // Trace - send http trace request to peer nodes
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. src/os/example_test.go

    	// on the original target path.
    	dstInfo, err := os.Stat(dstAbs)
    	if err != nil {
    		log.Fatal(err)
    	}
    	targetInfo, err := os.Stat(targetPath)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !os.SameFile(dstInfo, targetInfo) {
    		log.Fatalf("link destination (%s) is not the same file as %s", dstAbs, targetPath)
    	}
    
    	// Output:
    	// hello.link links to hello.txt
    }
    
    func ExampleUserCacheDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/norm/forminfo.go

    // Note that the recomposition map for NFC and NFKC are identical.
    
    // combine returns the combined rune or 0 if it doesn't exist.
    //
    // The caller is responsible for calling
    // recompMapOnce.Do(buildRecompMap) sometime before this is called.
    func combine(a, b rune) rune {
    	key := uint32(uint16(a))<<16 + uint32(uint16(b))
    	if recompMap == nil {
    		panic("caller error") // see func comment
    	}
    	return recompMap[key]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top