Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 380 for isSafe (0.17 sec)

  1. src/cmd/compile/internal/types2/errorcalls_test.go

    			call, _ := n.(*syntax.CallExpr)
    			if call == nil {
    				return true
    			}
    			selx, _ := call.Fun.(*syntax.SelectorExpr)
    			if selx == nil {
    				return true
    			}
    			if !(isName(selx.X, "check") && isName(selx.Sel, "errorf")) {
    				return true
    			}
    			// check.errorf calls should have at least errorfMinArgCount arguments:
    			// position, code, format string, and arguments to format
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/go/types/errorcalls_test.go

    			call, _ := n.(*ast.CallExpr)
    			if call == nil {
    				return true
    			}
    			selx, _ := call.Fun.(*ast.SelectorExpr)
    			if selx == nil {
    				return true
    			}
    			if !(isName(selx.X, "check") && isName(selx.Sel, "errorf")) {
    				return true
    			}
    			// check.errorf calls should have at least errorfMinArgCount arguments:
    			// position, code, format string, and arguments to format
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/kubelet/sysctl/safe_sysctls.go

    	},
    	{
    		name:   "net.ipv4.tcp_keepalive_probes",
    		kernel: utilkernel.TCPKeepAliveProbesNamespacedKernelVersion,
    	},
    }
    
    // SafeSysctlAllowlist returns the allowlist of safe sysctls and safe sysctl patterns (ending in *).
    //
    // A sysctl is called safe iff
    // - it is namespaced in the container or the pod
    // - it is isolated, i.e. has no influence on any other pod on the same node.
    func SafeSysctlAllowlist() []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/html/template/content.go

    	// the encapsulated content should come from a trusted source,
    	// as it will be included verbatim in the template output.
    	//
    	// Using JS to include valid but untrusted JSON is not safe.
    	// A safe alternative is to parse the JSON with json.Unmarshal and then
    	// pass the resultant object into the template, where it will be
    	// converted to sanitized JSON when presented in a JavaScript context.
    	JS string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top