- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 138 for makeEp (0.11 sec)
-
pilot/pkg/xds/xds_cache_test.go
} } func TestXdsCache(t *testing.T) { makeEp := func(subset string, dr *model.ConsolidatedDestRule) *endpoints.EndpointBuilder { svc := &model.Service{Hostname: "foo.com"} b := endpoints.NewCDSEndpointBuilder( proxy, nil, fmt.Sprintf("outbound|%s|foo.com", subset), model.TrafficDirectionOutbound, subset, "foo.com", 80, svc, dr) return b } ep1 := makeEp("1", nil) ep2 := makeEp("2", nil)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 31 20:43:08 UTC 2023 - 7.8K bytes - Viewed (0) -
test/makemap.go
sink = make(T, x) // ERROR "negative size argument in make.*|must not be negative" const y = uint64(1 << 63) sink = make(T, y) // ERROR "size argument too large in make.*|overflows int" sink = make(T, 0.5) // ERROR "constant 0.5 truncated to integer|truncated to int" sink = make(T, 1.0) sink = make(T, float32(1.0)) // ERROR "non-integer size argument in make.*|must be integer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 23 00:41:01 UTC 2021 - 1.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/mock/discovery_test.go
}) HelloInstanceV0 := MakeIP(HelloService, 0) if HelloInstanceV0 != "10.1.1.0" { t.Fatalf("MakeIP() can not handle ip4 address.") } HelloService1 := MakeService(ServiceArgs{ Hostname: "hello.default.svc.cluster.local", Address: "asa", ServiceAccounts: []string{}, ClusterID: "cluster-1", }) HelloInstanceV1 := MakeIP(HelloService1, 0) if HelloInstanceV1 != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 09 17:33:49 UTC 2023 - 1.6K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/futile-wakeup.go
// license that can be found in the LICENSE file. // Tests to make sure the runtime doesn't generate futile wakeups. For example, // it makes sure that a block on a channel send that unblocks briefly only to // immediately go back to sleep (in such a way that doesn't reveal any useful // information, and is purely an artifact of the runtime implementation) doesn't // make it into the trace. //go:build ignore package main import (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
pilot/pkg/serviceregistry/mock/discovery.go
MeshExternal: isMeshExternal, Ports: []*model.Port{{ Name: "https", Port: 443, Protocol: protocol.HTTPS, }}, } } // MakeIP creates a fake IP address for a service and instance version func MakeIP(service *model.Service, version int) string { // external services have no instances if service.External() { return "" } ipa, ise := netip.ParseAddr(service.DefaultAddress)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 18:40:05 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
auto data_flat = data.flat<T>(); for (int i = 0; i < data_flat.size(); ++i) { data_flat(i) = T(i); } return data; } template <typename T> void MakeOp(const OpType op_type, const Tensor& x_data, const Input& y_shape, const bool align_corners, const bool half_pixel_centers, Output* x, Output* y) { *x = Const<T>(scope_, x_data);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0) -
src/go/types/termlist_test.go
// license that can be found in the LICENSE file. package types import ( "strings" "testing" ) // maketl makes a term list from a string of the term list. func maketl(s string) termlist { s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "|") r := make(termlist, len(names)) for i, n := range names { r[i] = testTerm(n) } return r } func TestTermlistAll(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go
makePVC("pvc-b", waitSC.Name).withBoundPV("pv-b").PersistentVolumeClaim, }, pvs: []*v1.PersistentVolume{ makePV("pv-a", waitSC.Name).withPhase(v1.VolumeBound).withNodeAffinity(map[string][]string{ v1.LabelHostname: {"node-a"}, }).PersistentVolume, makePV("pv-b", waitSC.Name).withPhase(v1.VolumeBound).withNodeAffinity(map[string][]string{ v1.LabelHostname: {"node-a"}, }).PersistentVolume,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 32K bytes - Viewed (0) -
pkg/controller/garbagecollector/graph_builder_test.go
makeID("v2", "kind", "ns1", "name", "uid"), makeID("v3", "kind", "ns1", "name", "uid"), makeID("v4", "kind", "ns1", "name", "uid"), makeID("v5", "kind", "ns1", "name", "uid"), } orderedClusterReferences := []objectReference{ makeID("v1", "kind", "", "name", "uid"), makeID("v2", "kind", "", "name", "uid"), makeID("v3", "kind", "", "name", "uid"), makeID("v4", "kind", "", "name", "uid"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 17 15:49:32 UTC 2020 - 7.6K bytes - Viewed (0) -
src/internal/trace/parser.go
EvHeapGoal = 34 // gcController.heapGoal change [timestamp, heap goal bytes] EvTimerGoroutine = 35 // denotes timer goroutine [timer goroutine id] EvFutileWakeup = 36 // denotes that the previous wakeup of this goroutine was futile [timestamp] EvString = 37 // string dictionary entry [ID, length, string] EvGoStartLocal = 38 // goroutine starts running on the same P as the last event [timestamp, goroutine id]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0)