Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for funny (0.06 sec)

  1. test/ddd1.go

    	_ = sum3(tuple())
    	_ = sum3(tuple()...) // ERROR "\.{3} in call to non-variadic|multiple-value|invalid use of .*[.][.][.]"
    )
    
    type T []T
    
    func funny(args ...T) int { return 0 }
    
    var (
    	_ = funny(nil)
    	_ = funny(nil, nil)
    	_ = funny([]T{}) // ok because []T{} is a T; passes []T{[]T{}}
    )
    
    func Foo(n int) {}
    
    func bad(args ...int) {
    	print(1, 2, args...)	// ERROR "[.][.][.]"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:39 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_sync_atomic_import.txt

    [short] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    [!GOEXPERIMENT:coverageredesign] skip
    
    go test -short -cover -covermode=atomic -coverpkg=coverdep/p1 coverdep
    
    # In addition to the above, test to make sure there is no funny
    # business if we try "go test -cover" in atomic mode targeting
    # sync/atomic itself (see #57445). Just a short test run is needed
    # since we're mainly interested in making sure the test builds and can
    # execute at least one test.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 1011 bytes
    - Viewed (0)
  3. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec.groovy

            when:
            run("test")
    
            then:
            noExceptionThrown()
        }
    
        // This is named funny to keep the path to the project
        // under Windows's limits.  This checks that we can use
        // ServletCategory as an extension class when compiling
        // Groovy code.
        @Issue("GRADLE-3235")
        def gradle3235() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/gcflags_patterns.txt

    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory even if GOPATH is funny
    [!case-sensitive] cd $WORK/GoPath/src/my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    # cgo.a should not be a dependency of internally-linked go package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    # non-standard host objects.
    #
    # As of 1.21 we continue to use internal linking for programs whose
    # CGO use comes only from stdlib packages in the absence of any flag
    # funny business, however if the Go command sees flags that may be suspicious,
    # it signals the Go linker to invoke the external linker.
    
    # The next few tests run builds passing "-n" to the Go command, then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/web/api.go

    	if !utf8.ValidString(s) {
    		return "" // Don't try to recover non-UTF-8 error messages.
    	}
    	for _, r := range s {
    		if !unicode.IsGraphic(r) && !unicode.IsSpace(r) {
    			return "" // Don't let the server do any funny business with the user's terminal.
    		}
    	}
    
    	var detail strings.Builder
    	for i, line := range strings.Split(s, "\n") {
    		if strings.TrimSpace(line) == "" {
    			break // Stop at the first blank line.
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:00:34 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  7. src/log/slog/json_handler.go

    		s.appendString(v.str())
    	case KindInt64:
    		*s.buf = strconv.AppendInt(*s.buf, v.Int64(), 10)
    	case KindUint64:
    		*s.buf = strconv.AppendUint(*s.buf, v.Uint64(), 10)
    	case KindFloat64:
    		// json.Marshal is funny about floats; it doesn't
    		// always match strconv.AppendFloat. So just call it.
    		// That's expensive, but floats are rare.
    		if err := appendJSONMarshal(s.buf, v.Float64()); err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/sumdb.go

    	}
    	vkey, err := note.NewVerifier(key[0])
    	if err != nil {
    		return "", nil, fmt.Errorf("invalid GOSUMDB: %v", err)
    	}
    	name := vkey.Name()
    
    	// No funny business in the database name.
    	direct, err := url.Parse("https://" + name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:02:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. cluster/common.sh

      if [[ -n "${KUBE_CONTEXT:-}" ]]; then
        get-kubeconfig-basicauth
      fi
    
      if [[ -z "${KUBE_USER:-}" || -z "${KUBE_PASSWORD:-}" ]]; then
        gen-kube-basicauth
      fi
    
      # Make sure they don't contain any funny characters.
      if ! [[ "${KUBE_USER}" =~ ^[-._@a-zA-Z0-9]+$ ]]; then
        echo "Bad KUBE_USER string."
        exit 1
      fi
      if ! [[ "${KUBE_PASSWORD}" =~ ^[-._@#%/a-zA-Z0-9]+$ ]]; then
        echo "Bad KUBE_PASSWORD string."
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 15:36:33 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. src/encoding/base64/base64_test.go

    func rawURLRef(ref string) string {
    	return rawRef(urlRef(ref))
    }
    
    const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    
    // A nonstandard encoding with a funny padding character, for testing
    var funnyEncoding = NewEncoding(encodeStd).WithPadding(rune('@'))
    
    func funnyRef(ref string) string {
    	return strings.ReplaceAll(ref, "=", "@")
    }
    
    type encodingTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top