Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 244 for detective (0.2 sec)

  1. test/fixedbugs/issue67141.go

    // errorcheck -lang=go1.22
    
    //go:build go1.21
    
    // We need a line directive before the package clause,
    // but don't change file name or position so that the
    // error message appears at the right place.
    
    //line issue67141.go:10
    package p
    
    func _() {
    	for range 10 { // ERROR "cannot range over 10"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:21 UTC 2024
    - 301 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/work_implicit_go_requirement.txt

    # Issue 66207: provide a better error message when there's no
    # go directive in a go.work file so 1.18 is implicitly required.
    
    ! go list
    stderr 'go: module . listed in go.work file requires go >= 1.21, but go.work implicitly requires go 1.18; to update it:\s+go work use'
    
    go work use
    go list
    stdout foo
    
    -- go.work --
    use .
    -- go.mod --
    module foo
    
    go 1.21
    -- foo.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:35:47 UTC 2024
    - 384 bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/godebug.go

    // When building a test binary, directives, testDirectives, and xtestDirectives
    // list additional directives from the package under test.
    func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string {
    	if p.Name != "main" {
    		return ""
    	}
    	goVersion := modload.MainModules.GoVersion()
    	if modload.RootMode == modload.NoRoot && p.Module != nil {
    		// This is go install pkg@version or go run pkg@version.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_load_badmod.txt

    go list -m -mod=mod all
    
    # ... and in replaced dependency go.mod files.
    cp go.mod go.mod.usesub
    go list -m -mod=mod all
    
    # ... but not in the main module.
    cp go.mod.bad go.mod
    ! go list -m -mod=mod all
    stderr 'unknown directive: hello'
    
    -- go.mod --
    module m
    require rsc.io/badmod v1.0.0
    -- go.mod.bad --
    module m
    hello world
    -- go.mod.usesub --
    module m
    require rsc.io/badmod v1.0.0
    replace rsc.io/badmod v1.0.0 => ./sub
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 11 13:08:54 UTC 2020
    - 524 bytes
    - Viewed (0)
  5. test/interface/noeq.go

    // run
    
    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test run-time error detection for interface values containing types
    // that cannot be compared for equality.
    
    package main
    
    func main() {
    	cmp(1)
    
    	var (
    		m map[int]int
    		s struct{ x []int }
    		f func()
    	)
    	noCmp(m)
    	noCmp(s)
    	noCmp(f)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 641 bytes
    - Viewed (0)
  6. test/typeparam/valimp.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type Value[T any] struct {
    	val T
    }
    
    // The noinline directive should survive across import, and prevent instantiations
    // of these functions from being inlined.
    
    //go:noinline
    func Get[T any](v *Value[T]) T {
    	return v.val
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 587 bytes
    - Viewed (0)
  7. .github/workflows/codeql-analysis.yml

          matrix:
            # Override automatic language detection by changing the below list
            # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
            language: ['java', 'javascript']
            # Learn more...
            # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
    
        steps:
        - name: Checkout repository
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. pilot/pkg/xds/endpoints/endpoint_builder_test.go

    								FailoverPriority: []string{
    									"a",
    									"b",
    								},
    							},
    						},
    					},
    				},
    			},
    			expectedLabels: []byte("a:a b:b "),
    		},
    		{
    			name: "no outlier detection",
    			dr: &config.Config{
    				Spec: &networking.DestinationRule{
    					TrafficPolicy: &networking.TrafficPolicy{
    						LoadBalancer: &networking.LoadBalancerSettings{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/ResultsStoreHelper.java

            int firstDashIndex = channel.indexOf('-');
            if (firstDashIndex == -1) {
                return OperatingSystem.LINUX;
            }
            String prefix = channel.startsWith("flakiness-detection")
                ? "flakiness-detection"
                : channel.substring(0, firstDashIndex);
            String channelWithoutPrefix = channel.substring(prefix.length());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. test/fixedbugs/bug459.go

    // errorcheck
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 3890: missing detection of init cycle involving
    // method calls in function bodies.
    
    package flag
    
    var commandLine = NewFlagSet() // ERROR "initialization cycle|depends upon itself"
    
    type FlagSet struct {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 681 bytes
    - Viewed (0)
Back to top