Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for valfunc (0.59 sec)

  1. src/slices/sort_test.go

    			}
    
    			gotMax := Max(tt.data)
    			if gotMax != tt.wantMax {
    				t.Errorf("Max got %v, want %v", gotMax, tt.wantMax)
    			}
    
    			gotMaxFunc := MaxFunc(tt.data, intCmp)
    			if gotMaxFunc != tt.wantMax {
    				t.Errorf("MaxFunc got %v, want %v", gotMaxFunc, tt.wantMax)
    			}
    		})
    	}
    
    	svals := []S{
    		{1, "a"},
    		{2, "a"},
    		{1, "b"},
    		{2, "b"},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            def sum = Amount.valueOf(valueA, unitsA) + Amount.valueOf(valueB, unitsB)
            expect:
            sum == Amount.valueOf(valueC, unitsC)
            sum.toString() == Amount.valueOf(valueC, unitsC).toString()
    
            where:
            valueA | unitsA        | valueB | unitsB        | valueC  | unitsC
            0      | Fruit.apples  | 0      | Fruit.oranges | 0       | Fruit.apples
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/cmd/vet/main.go

    	"golang.org/x/tools/go/analysis/passes/ifaceassert"
    	"golang.org/x/tools/go/analysis/passes/loopclosure"
    	"golang.org/x/tools/go/analysis/passes/lostcancel"
    	"golang.org/x/tools/go/analysis/passes/nilfunc"
    	"golang.org/x/tools/go/analysis/passes/printf"
    	"golang.org/x/tools/go/analysis/passes/shift"
    	"golang.org/x/tools/go/analysis/passes/sigchanyzer"
    	"golang.org/x/tools/go/analysis/passes/slog"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_coverpkg_partial.txt

    package a
    
    import "M/f"
    
    var G int
    
    func AFunc() int {
    	G = 1
    	return f.Id()
    }
    -- a/a_test.go --
    package a
    
    import "testing"
    
    func TestA(t *testing.T) {
    	if AFunc() != 42 {
    		t.Fatalf("bad!")
    	}
    }
    -- b/b.go --
    package b
    
    import (
    	"M/a"
    	"M/d"
    )
    
    func BFunc() int {
    	return -d.FortyTwo + a.AFunc()
    }
    -- b/b_test.go --
    package b
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. tests/integration/security/testdata/authz/jwt.yaml.tmpl

            methods: ["GET"]
        when:
        - key: request.auth.claims[nested][non-exist]
          values: ["valueC"]
      - to:
        - operation:
            paths: ["/nested-key2"]
            methods: ["GET"]
        when:
        - key: request.auth.claims[nested][key2]
          values: ["valueC"]
      - to:
        - operation:
            paths: ["/nested-2-key1"]
            methods: ["GET"]
        when:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/flagdefs.go

    	"errorsas":         true,
    	"framepointer":     true,
    	"httpresponse":     true,
    	"ifaceassert":      true,
    	"loopclosure":      true,
    	"lostcancel":       true,
    	"methods":          true,
    	"nilfunc":          true,
    	"printf":           true,
    	"rangeloops":       true,
    	"shift":            true,
    	"sigchanyzer":      true,
    	"slog":             true,
    	"stdmethods":       true,
    	"stdversion":       true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. pkg/kubeapiserver/authorizer/config.go

    	WebhookRetryBackoff *wait.Backoff
    
    	VersionedInformerFactory versionedinformers.SharedInformerFactory
    
    	// Optional field, custom dial function used to connect to webhook
    	CustomDial utilnet.DialFunc
    
    	// ReloadFile holds the filename to reload authorization configuration from
    	ReloadFile string
    	// AuthorizationConfiguration stores the configuration for the Authorizer chain
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/cmd/vendor/modules.txt

    golang.org/x/tools/go/analysis/passes/inspect
    golang.org/x/tools/go/analysis/passes/internal/analysisutil
    golang.org/x/tools/go/analysis/passes/loopclosure
    golang.org/x/tools/go/analysis/passes/lostcancel
    golang.org/x/tools/go/analysis/passes/nilfunc
    golang.org/x/tools/go/analysis/passes/printf
    golang.org/x/tools/go/analysis/passes/shift
    golang.org/x/tools/go/analysis/passes/sigchanyzer
    golang.org/x/tools/go/analysis/passes/slog
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/slices/example_test.go

    func ExampleMaxFunc() {
    	type Person struct {
    		Name string
    		Age  int
    	}
    	people := []Person{
    		{"Gopher", 13},
    		{"Alice", 55},
    		{"Vera", 24},
    		{"Bob", 55},
    	}
    	firstOldest := slices.MaxFunc(people, func(a, b Person) int {
    		return cmp.Compare(a.Age, b.Age)
    	})
    	fmt.Println(firstOldest.Name)
    	// Output:
    	// Alice
    }
    
    func ExampleMin() {
    	numbers := []int{0, 42, -10, 8}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top