Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for isSafe (0.18 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Range.groovy

    class Range {
        private final long millis
    
        Range(long millis) {
            this.millis = millis
        }
    
        @Override
        String toString() {
            return "[approx $millis millis]"
        }
    
        boolean isCase(Duration duration) {
            def actualMillis = duration.millis
            return actualMillis > millis - 500 && actualMillis < millis + 2000
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/internal/language/tags.go

    // MustParse is like Parse, but panics if the given BCP 47 tag cannot be parsed.
    // It simplifies safe initialization of Tag values.
    func MustParse(s string) Tag {
    	t, err := Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // MustParseBase is like ParseBase, but panics if the given base cannot be parsed.
    // It simplifies safe initialization of Base values.
    func MustParseBase(s string) Language {
    	b, err := ParseBase(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    func HasSideEffects(info *types.Info, e ast.Expr) bool {
    	safe := true
    	ast.Inspect(e, func(node ast.Node) bool {
    		switch n := node.(type) {
    		case *ast.CallExpr:
    			typVal := info.Types[n.Fun]
    			switch {
    			case typVal.IsType():
    				// Type conversion, which is safe.
    			case typVal.IsBuiltin():
    				// Builtin func, conservatively assumed to not
    				// be safe for now.
    				safe = false
    				return false
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/build/relnote/links.go

    	i := strings.LastIndex(text, ".")
    	name = text[i+1:]
    	if !isName(name) {
    		return text, "", false
    	}
    	if i >= 0 {
    		before = text[:i]
    	}
    	return before, name, true
    }
    
    // isName reports whether s is a capitalized Go identifier (like Name).
    func isName(s string) bool {
    	t, ok := ident(s)
    	if !ok || t != s {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsIntegrationTest.groovy

            """
    
            when:
            run 'help'
    
            then:
            outputContains 'Type-safe project accessors is an incubating feature.'
        }
    
        def "can use the #notation notation on type-safe accessor"() {
            given:
            createDirs("other")
            settingsFile << """
                include 'other'
            """
    
            buildFile << """
                configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:11:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/language/tags.go

    // MustParse is like Parse, but panics if the given BCP 47 tag cannot be parsed.
    // It simplifies safe initialization of Tag values.
    func MustParse(s string) Tag {
    	t, err := Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // MustParse is like Parse, but panics if the given BCP 47 tag cannot be parsed.
    // It simplifies safe initialization of Tag values.
    func (c CanonType) MustParse(s string) Tag {
    	t, err := c.Parse(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy

    import org.junit.rules.ExternalResource
    import org.slf4j.Logger
    
    /**
     * This test fixture needs to be thread-safe for all operations that are done at execution time:
     *
     * - defining expectations is done serially in 'given', 'when' blocks, so doesn't need to be thread-safe
     * - but handlers, as well as failures, need to be thread-safe
     *
     */
    abstract class ServerWithExpectations extends ExternalResource implements ResettableExpectations {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/html/template/doc.go

    This package assumes that template authors are trusted, that Execute's data
    parameter is not, and seeks to preserve the properties below in the face
    of untrusted data:
    
    Structure Preservation Property:
    "... when a template author writes an HTML tag in a safe templating language,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:04:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/PayloadClassLoaderRegistry.java

        /**
         * Starts serializing an object graph.
         * The returned value is not required to be thread-safe.
         */
        SerializeMap newSerializeSession();
    
        /**
         * Starts deserializing an object graph.
         * The returned value is not required to be thread-safe.
         */
        DeserializeMap newDeserializeSession();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ProjectStateLockingCrossVersionTest.groovy

                collectOutputs(executer)
                executer.run()
            }
    
            then:
            !stdout.toString().contains("was resolved without accessing the project in a safe manner")
    
            and:
            assertHasConfigureSuccessfulLogging()
        }
    
        def "does not emit deprecation warnings when eclipse model builder resolves a configuration"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top