- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 169 for expectation (0.17 sec)
-
src/internal/trace/testtrace/expectation.go
"regexp" "strconv" "strings" ) // Expectation represents the expected result of some operation. type Expectation struct { failure bool errorMatcher *regexp.Regexp } // ExpectSuccess returns an Expectation that trivially expects success. func ExpectSuccess() *Expectation { return new(Expectation) } // Check validates whether err conforms to the expectation. Returns // an error if it does not conform. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ArtifactResolutionExpectationSpec.groovy
/** * Setup expectation when resolving with module metadata * @param expectation */ void withModuleMetadata(@DelegatesTo(value = SingleArtifactResolutionResultSpec, strategy = Closure.DELEGATE_FIRST) Closure<?> expectation) { expectation.resolveStrategy = Closure.DELEGATE_FIRST expectation.delegate = withModuleMetadataSpec expectation() } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go
Type: "unsupported", }, }, }, endpoints: nil, clusterMode: expectation{error: true}, endpointMode: expectation{error: true}, }, { name: "missing service", services: nil, endpoints: nil, clusterMode: expectation{error: true}, endpointMode: expectation{error: true}, }, } for _, test := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:27 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/proxy/util/nodeport_addresses_test.go
} return nil } func TestGetNodeIPs(t *testing.T) { type expectation struct { matchAll bool ips sets.Set[string] } testCases := []struct { name string cidrs []string itfAddrsPairs []InterfaceAddrsPair expected map[v1.IPFamily]expectation }{ { name: "IPv4 single", cidrs: []string{"10.20.30.0/24"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 13.7K bytes - Viewed (0) -
security/pkg/nodeagent/sds/sdsservice_test.go
} func (s *TestServer) Verify(resp *discovery.DiscoveryResponse, expectations ...Expectation) *discovery.DiscoveryResponse { s.t.Helper() if len(resp.Resources) != len(expectations) { s.t.Fatalf("expected %d resources, got %d", len(expectations), len(resp.Resources)) } got := xdstest.ExtractTLSSecrets(s.t, resp.Resources) for _, e := range expectations { scrt := got[e.ResourceName] var expectationKey []byte
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 17 20:12:58 UTC 2024 - 11.6K bytes - Viewed (0) -
pkg/controller/util/selectors/bimultimap_test.go
} } } type expectation func(*BiMultimap) error func forwardSelect(key Key, want ...Key) expectation { return func(m *BiMultimap) error { got, _ := m.Select(key) if !unorderedEqual(want, got) { return fmt.Errorf("forward select %v wanted %v. got %v.", key, want, got) } return nil } } func reverseSelect(key Key, want ...Key) expectation { return func(m *BiMultimap) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 13 01:56:36 UTC 2022 - 16.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/ModuleVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 14.4K bytes - Viewed (0) -
platforms/software/maven/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/maven/AbstractMavenPublishIntegTest.groovy
MavenArtifactResolutionExpectation expectation = new MavenArtifactResolutionExpectation(dependencyNotation, this) expectation.dependency = convertDependencyNotation(dependencyNotation) expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST expectationSpec.delegate = expectation expectationSpec() expectation.validate() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 8.1K bytes - Viewed (0) -
platforms/software/ivy/src/testFixtures/groovy/org/gradle/api/publish/ivy/AbstractIvyPublishIntegTest.groovy
IvyArtifactResolutionExpectation expectation = new IvyArtifactResolutionExpectation(dependencyNotation) expectation.dependency = convertDependencyNotation(dependencyNotation) expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST expectationSpec.delegate = expectation expectationSpec() expectation.validate() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 7.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/argposition_test.go
Line: 42, Column: 91, }, }, } for _, decl := range f.Decls { if fdecl, ok := decl.(*ast.FuncDecl); ok { ast.Walk(&Visitor{expectation, fset, t}, fdecl.Body) } } for ident, positions := range expectation { for _, position := range positions { if !position.Visited { t.Errorf("Position %d:%d missed for %s ident", position.Line, position.Column, ident) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 3.1K bytes - Viewed (0)