- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for expectedCount (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
expectedOut: []example.Pod{*fooObj, *fooBarObj}, }, { name: "NonRecursive on object key (prefix) returns object and no other objects with the same prefix", key: fooKey, recursive: false, expectedOut: []example.Pod{*fooObj}, }, { name: "Recursive on object key (prefix) doesn't return anything", key: fooKey, recursive: true, expectedOut: []example.Pod{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0) -
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/LoggingIntegrationTest.groovy
outs.each {String expectedOut -> def filters = outs.findAll { other -> other != expectedOut && other.startsWith(expectedOut) } // Find all locations of the expected string in the output List<Integer> matches = [] int pos = 0; while (pos < result.length()) { int match = result.indexOf(expectedOut, pos) if (match < 0) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.6K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy
assertThat(filesByRelativePath.keySet(), equalTo(relativePaths as Set)) def expectedCounts = ArrayListMultimap.create() for (String fileName : relativePaths) { expectedCounts.put(fileName, fileName) } for (String fileName : relativePaths) { assertEquals(expectedCounts.get(fileName).size(), filesByRelativePath.get(fileName).size()) } this }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.8K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint_test.go
} defaultFile, err := os.ReadFile(fmt.Sprintf("testdata/waypoint/%s", tt.expectedOutFile)) if err != nil { t.Fatal(err) } expectedOut := string(defaultFile) if len(expectedOut) == 0 { t.Fatal("expected output is empty") } var out bytes.Buffer rootCmd := Cmd(ctx) rootCmd.SetArgs(tt.args) rootCmd.SetOut(&out) rootCmd.SetErr(&out)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 04 15:53:09 UTC 2024 - 4.4K bytes - Viewed (0) -
operator/pkg/util/yaml_test.go
"abc": "f", }, expectedOut: `abc: f foo: yaml `, }, { desc: "expected-err-nil", inVals: nil, expectedOut: "null\n", }, } for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { if got := ToYAML(tt.inVals); got != tt.expectedOut { t.Errorf("%s: expected out %v got %s", tt.desc, tt.expectedOut, got) } }) } } func TestOverlayTrees(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 17:00:14 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_windows_test.go
require.NoError(t, err) defer os.RemoveAll(podDir) mounts, _, err := makeMounts(&pod, podDir, &container, "fakepodname", "", []string{""}, podVolumes, fhu, fsp, nil, false) require.NoError(t, err) expectedMounts := []kubecontainer.Mount{ { Name: "disk", ContainerPath: "c:/etc/hosts", HostPath: "c:/mnt/disk", ReadOnly: false, SELinuxRelabel: false, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 4.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/secret_test.go
} defer outFile.Close() expectedOut, err := io.ReadAll(outFile) if err != nil { t.Errorf("error reading test data output file: %v", err) } gotOut := &bytes.Buffer{} cw := &ConfigWriter{Stdout: gotOut} err = cw.Prime(configDump) assert.NoError(t, err) err = cw.PrintSecretSummary() assert.NoError(t, err) assert.Equal(t, string(expectedOut), gotOut.String())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 06 15:14:48 UTC 2023 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go
defaultGVK *schema.GroupVersionKind intoObj runtime.Object errFunc func(error) bool expectedGVKOfSerializedData *schema.GroupVersionKind expectedOut runtime.Object }{ { name: "decode v1 unstructured into non-nil v2 unstructured", serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 08 14:55:24 UTC 2018 - 10.9K bytes - Viewed (0) -
pkg/volume/util/util_test.go
tests := []struct { name string pod *v1.Pod expectedMounts sets.Set[string] expectedDevices sets.Set[string] expectedSELinuxContexts map[string][]*v1.SELinuxOptions }{ { name: "empty pod", pod: &v1.Pod{ Spec: v1.PodSpec{}, }, expectedMounts: sets.New[string](), expectedDevices: sets.New[string](), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_linux_test.go
testCases := map[string]struct { container v1.Container podVolumes kubecontainer.VolumeMap supportsRRO bool expectErr bool expectedErrMsg string expectedMounts []kubecontainer.Mount }{ "valid mounts in unprivileged container": { podVolumes: kubecontainer.VolumeMap{ "disk": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "/mnt/disk"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 18:00:59 UTC 2024 - 11.3K bytes - Viewed (0)