Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,982 for EXPECT (0.27 sec)

  1. pilot/pkg/networking/core/route/route_test.go

    		xdstest.ValidateRoutes(t, routes)
    		g.Expect(err).NotTo(HaveOccurred())
    		g.Expect(len(routes)).To(Equal(3))
    		g.Expect(routes[0].GetMatch().GetPrefix()).To(Equal("/foo"))
    		g.Expect(routes[0].StatPrefix).To(Equal("foo"))
    		g.Expect(routes[1].GetMatch().GetPrefix()).To(Equal("/baz"))
    		g.Expect(routes[1].StatPrefix).To(Equal(""))
    		g.Expect(routes[2].GetMatch().GetPrefix()).To(Equal("/bar"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  2. pkg/securitycontext/util_test.go

    			},
    			expect: true,
    		},
    		"allowPrivilegeEscalation true": {
    			sc: &v1.SecurityContext{
    				AllowPrivilegeEscalation: &ptrue,
    			},
    			expect: false,
    		},
    	}
    
    	for k, v := range tests {
    		actual := AddNoNewPrivileges(v.sc)
    		if actual != v.expect {
    			t.Errorf("%s failed, expected %t but received %t", k, v.expect, actual)
    		}
    	}
    }
    
    func TestConvertToRuntimeMaskedPaths(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 05 01:25:23 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. pkg/kubelet/server/stats/summary_test.go

    	mockStatsProvider.EXPECT().GetNode().Return(node, nil)
    	mockStatsProvider.EXPECT().GetNodeConfig().Return(nodeConfig)
    	mockStatsProvider.EXPECT().GetPodCgroupRoot().Return(cgroupRoot)
    	mockStatsProvider.EXPECT().ListPodStats(ctx).Return(podStats, nil).AnyTimes()
    	mockStatsProvider.EXPECT().ListPodStatsAndUpdateCPUNanoCoreUsage(ctx).Return(podStats, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

            def bean = create(BeanWithAbstractProperty)
    
            expect:
            bean.name == null
            bean.setName("name")
            bean.name == "name"
        }
    
        def canUnpackAndRecreateAbstractClassWithAbstractPropertyGetterAndSetter() {
            def bean = create(BeanWithAbstractProperty)
    
            expect:
            bean instanceof Managed
            bean.publicType() == BeanWithAbstractProperty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/FingerprintCompareStrategyTest.groovy

        def "empty snapshots (#strategy.class.simpleName)"() {
            expect:
            changes(strategy,
                [:],
                [:]
            ) as List == []
    
            where:
            strategy << ALL_STRATEGIES
        }
    
        def "trivial addition (#strategy.class.simpleName)"() {
            expect:
            changes(strategy,
                ["new/one": fingerprint("one")],
                [:]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  6. cmd/metacache-stream_test.go

    man-shifts.dyn.expect", "src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput", "src/compress/flate/testdata/huffman-shifts.golden", "src/compress/flate/testdata/huffman-shifts.in", "src/compress/flate/testdata/huffman-shifts.wb.expect", "src/compress/flate/testdata/huffman-shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "s...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/util/GradleVersionTest.groovy

                    "1-beta",
                    "1.0-\n"
            ]
        }
    
        def "current version has non-null parts"() {
            expect:
            version.version
            version.nextMajorVersion
            version.baseVersion
        }
    
        def 'can parse commitId from commit version'() {
            expect:
            GradleVersion.version('5.1-commit-123abc').commitId == '123abc'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. callbacks/helper_test.go

    				"active": true,
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "active"}},
    				Values:  [][]interface{}{{true}},
    			},
    		},
    	}
    
    	for _, tc := range testCase {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input)
    			if !reflect.DeepEqual(actual, tc.expect) {
    				t.Errorf("expect %v got %v", tc.expect, actual)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 05 02:22:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                    assert graph.hasTask(':b')
                    assert graph.hasTask(b)
                    assert graph.allTasks == [b, a]
                    notified = true
                }
            """
            expect:
            2.times {
                succeeds "a"
                result.assertTasksExecuted(":b", ":a")
            }
        }
    
        @UnsupportedWithConfigurationCache
        def buildFinishedHookCanAccessTaskGraph() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. operator/pkg/tpath/util_test.go

    		desc   string
    		in     string
    		expect string
    		err    error
    	}{
    		{
    			desc: "empty",
    			in:   ``,
    			expect: `spec: {}
    `,
    			err: nil,
    		},
    		{
    			desc: "add-root",
    			in: `
    a: va
    b: foo`,
    			expect: `spec:
      a: va
      b: foo
    `,
    			err: nil,
    		},
    		{
    			desc:   "err",
    			in:     `i can't be yaml, can I?`,
    			expect: ``,
    			err:    errors.New(""),
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 27 09:06:29 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top