Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for someFile (0.25 sec)

  1. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/internal/FileReferenceFactoryTest.groovy

            TestFile file = rootDir.file("a/file.txt")
            def reference = factory.fromFile(file)
            def sameFile = factory.fromFile(file)
            def differentFile = factory.fromFile(rootDir)
    
            expect:
            reference Matchers.strictlyEqual(sameFile)
            reference != differentFile
        }
    
        private String relpath(File file) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/os/types_plan9.go

    func (fs *fileStat) Mode() FileMode     { return fs.mode }
    func (fs *fileStat) ModTime() time.Time { return fs.modTime }
    func (fs *fileStat) Sys() any           { return fs.sys }
    
    func sameFile(fs1, fs2 *fileStat) bool {
    	a := fs1.sys.(*syscall.Dir)
    	b := fs2.sys.(*syscall.Dir)
    	return a.Qid.Path == b.Qid.Path && a.Type == b.Type && a.Dev == b.Dev
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 797 bytes
    - Viewed (0)
  3. pkg/kube/inject/testdata/inputs/custom-template.yaml.40.values.gen.yaml

       sidecar.istio.io/rewriteAppHTTPProbers: \"false\"\n    foo: bar\nspec:\n  containers:\n  {{- range $index, $container := .Spec.Containers }}\n  - name: {{ $container.Name }}\n    env:\n    - name: SOME_ENV\n      value: \"true\"\n    - name: SOME_FILE\n      value: /var/lib/data/foo.json\n    volumeMounts:\n    - mountPath: /var/lib/data/foo.json\n      subPath: foo.json\n      name: some-injected-file\n  {{- end}}\n  volumes:\n  - name: some-injected-file\n    downwardAPI:\n      items:\n   ...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/internal/src/xpos.go

    // For positions with different bases, ordering is by base index.
    func (p XPos) Before(q XPos) bool {
    	n, m := p.index, q.index
    	return n < m || n == m && p.lico < q.lico
    }
    
    // SameFile reports whether p and q are positions in the same file.
    func (p XPos) SameFile(q XPos) bool {
    	return p.index == q.index
    }
    
    // SameFileAndLine reports whether p and q are positions on the same line in the same file.
    func (p XPos) SameFileAndLine(q XPos) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/versions/features.go

    // GoVersions that features in x/tools can be gated to.
    const (
    	Go1_18 = "go1.18"
    	Go1_19 = "go1.19"
    	Go1_20 = "go1.20"
    	Go1_21 = "go1.21"
    	Go1_22 = "go1.22"
    )
    
    // Future is an invalid unknown Go version sometime in the future.
    // Do not use directly with Compare.
    const Future = ""
    
    // AtLeast reports whether the file version v comes after a Go release.
    //
    // Use this predicate to enable a behavior once a certain Go release
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil_test.go

    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    	if err = os.WriteFile(tmpFile, []byte("aaa"), 0o644); err != nil {
    		t.Fatal(err)
    	}
    	fi2, err = os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if SameFile(fi1, fi2) {
    		t.Fatal("Expected the files not to be same")
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go

    			}
    		}
    	}
    
    	fis, err = os.ReadDir(uploaddir)
    	if err != nil {
    		os.MkdirAll(uploaddir, 0777)
    		return ans
    	}
    	// There should be only one of these per day; maybe sometime
    	// we'll want to clean the directory.
    	ans.uploaded = make(map[string]bool)
    	for _, fi := range fis {
    		if strings.HasSuffix(fi.Name(), ".json") {
    			u.logger.Printf("Already uploaded: %s", fi.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

         * {@linkplain org.apache.maven.api.JavaPathType#patchModule(String) handled in a special way}.
         *
         * <h4>Design note</h4>
         * All types of path are determined together because they are sometime mutually exclusive.
         * For example, an artifact of type {@value org.apache.maven.api.Type#JAR} can be placed
         * either on the class-path or on the module-path. The project needs to make a choice
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top