- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestBind (0.09 sec)
-
pkg/flag/flag_test.go
// limitations under the License. package flag import ( "testing" "github.com/spf13/pflag" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/util/assert" ) func TestBind(t *testing.T) { type Options struct { A, B, C string Env string Bool bool } opts := Options{ B: "b-def", } test.SetEnvForTest(t, "TEST_ENV", "from-env")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 01 04:37:36 UTC 2023 - 1.2K bytes - Viewed (0) -
subprojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultTestDescriptor.java
this.operationDisplayName = operationDisplayName; this.testDisplayName = displayName; this.testKind = testKind; this.suiteName = suiteName; this.className = className; this.methodName = methodName; this.parentId = parentId; this.taskPath = taskPath; } @Override public OperationIdentifier getId() { return id; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 08 07:45:14 UTC 2024 - 3.1K bytes - Viewed (0) -
pilot/pkg/config/kube/crd/config_test.go
package crd_test import ( "encoding/json" "reflect" "testing" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "istio.io/istio/pilot/pkg/config/kube/crd" "istio.io/istio/pkg/ptr" ) func TestKind(t *testing.T) { obj := crd.IstioKind{} spec := json.RawMessage(`{"a":"b"}`) obj.Spec = spec if got := obj.GetSpec(); !reflect.DeepEqual(spec, got) { t.Errorf("GetSpec() => got %v, want %v", got, spec) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 1.8K bytes - Viewed (0) -
src/sort/search_test.go
} func TestSearch(t *testing.T) { for _, e := range tests { i := Search(e.n, e.f) if i != e.i { t.Errorf("%s: expected index %d; got %d", e.name, e.i, i) } } } func TestFind(t *testing.T) { str1 := []string{"foo"} str2 := []string{"ab", "ca"} str3 := []string{"mo", "qo", "vo"} str4 := []string{"ab", "ad", "ca", "xy"} // slice with repeating elements
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0)