- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,661 for expect2 (0.15 sec)
-
pkg/test/framework/components/echo/match/matchers_test.go
tests := []struct { app echo.Instance expect bool }{ {app: a1, expect: true}, {app: b1, expect: true}, {app: vm1, expect: false}, {app: naked1, expect: false}, {app: external1, expect: false}, {app: headless1, expect: false}, } for _, tt := range tests { t.Run(tt.app.Config().Service, func(t *testing.T) { if got := match.RegularPod(tt.app); got != tt.expect { t.Errorf("got %v expected %v", got, tt.expect)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 5.2K bytes - Viewed (0) -
pilot/pkg/server/instance_test.go
) func TestStartWithError(t *testing.T) { g := NewWithT(t) inst := server.New() expected := errors.New("fake") inst.RunComponent("fake", func(stop <-chan struct{}) error { return expected }) stop := newReclosableChannel() t.Cleanup(stop.Close) g.Expect(inst.Start(stop.c)).To(Equal(expected)) } func TestStartWithNoError(t *testing.T) { g := NewWithT(t) inst := server.New()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 23:02:39 UTC 2024 - 4.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/SelectOptionPromptEventTest.groovy
def "accepts valid input"() { def event = new SelectOptionPromptEvent(123, "question", ["1", "2", "3", "4"], 1) expect: def result = event.convert(input) result.response == expected result.newPrompt == null where: input | expected '1' | 0 '4' | 3 ' 1 ' | 0 } def "uses default value on empty input"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 12:11:05 UTC 2024 - 2.1K bytes - Viewed (0) -
pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 23 05:38:57 UTC 2024 - 39.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecatedFeatureUsageTest.groovy
expect: featureUsage.formattedMessage() == expected where: summary | removalDetails | advice | contextualAdvice | documentationReference | expected
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 16:09:54 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy
expect: try { def result = dep.selectVariants(variantSelector, attributes(queryAttributes), toComponent, attributesSchema, [] as Set).variants.name as Set if (expected == null && result) { throw new Exception("Expected an ambiguous result, but got $result") } assert result == [expected] as Set
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:10:53 UTC 2024 - 25.3K bytes - Viewed (0) -
src/time/format_test.go
t.Errorf("got %q; expect %q", got, expect) } got = noon.Format("03:04PM") if got != expect { t.Errorf("got %q; expect %q", got, expect) } } func TestMidnightIs12AM(t *testing.T) { midnight := Date(0, January, 1, 0, 0, 0, 0, UTC) expect := "12:00AM" got := midnight.Format("3:04PM") if got != expect { t.Errorf("got %q; expect %q", got, expect) } got = midnight.Format("03:04PM")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:58:29 UTC 2024 - 36.4K bytes - Viewed (0) -
src/flag/flag_test.go
if err := flags.Parse([]string{"-v", "1", "-v", "2", "-v=3"}); err != nil { t.Error(err) } if len(v) != 3 { t.Fatal("expected 3 args; got ", len(v)) } expect := "[1 2 3]" if v.String() != expect { t.Errorf("expected value %q got %q", expect, v.String()) } } func TestUserDefinedFunc(t *testing.T) { flags := NewFlagSet("test", ContinueOnError) flags.SetOutput(io.Discard)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
cni/pkg/install/kubeconfig_test.go
} result, err := createKubeConfig(cfg) if err != nil { if !c.expectedFailure { t.Fatalf("did not expect failure: %v", err) } // Successful test case expecting failure return } else if c.expectedFailure { t.Fatalf("expected failure") } goldenFilepath := "testdata/kubeconfig-tls" if c.skipTLSVerify { goldenFilepath = "testdata/kubeconfig-skip-tls"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 21:52:29 UTC 2024 - 5.1K bytes - Viewed (0) -
pilot/pkg/networking/core/sidecar_simulation_test.go
port: 83 - name: https port: 84` type tc struct { call simulation.Call expected string } calls := []simulation.Expect{} for _, call := range []tc{ {call: simulation.Call{Address: "1.2.3.4", Port: 80, Protocol: simulation.HTTP, HostHeader: "alias.default.svc.cluster.local"}, expected: "alias"}, // Auto port should support any protocol
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 84.7K bytes - Viewed (0)