Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for expectation (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResourceHandlerWrapper.java

        private final boolean autoRelease;
        private boolean started;
        private boolean received;
    
        ResourceHandlerWrapper(Lock lock, ResourceExpectation expectation, WaitPrecondition owner, boolean isAutoRelease) {
            this.lock = lock;
            handler = expectation.create(this);
            this.owner = owner;
            this.autoRelease = isAutoRelease;
        }
    
        public String getDisplayName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. src/internal/trace/testtrace/format.go

    package testtrace
    
    import (
    	"bytes"
    	"fmt"
    	"internal/trace/raw"
    	"internal/txtar"
    	"io"
    )
    
    // ParseFile parses a test file generated by the testgen package.
    func ParseFile(testPath string) (io.Reader, *Expectation, error) {
    	ar, err := txtar.ParseFile(testPath)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err)
    	}
    	if len(ar.Files) != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

        }
    
        private HttpResourceInteraction addOneRequestExpecation(String path, boolean matchPrefix, Collection<String> methods, Action action, OneRequestServerExpectation expectation) {
            expectations << expectation
            add(path, matchPrefix, methods, new AbstractHandler() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsFixture.groovy

                modelsCreated(new ModelRequestExpectation(path, modelNames))
            }
    
            void modelsCreated(ModelRequestExpectation expectation) {
                projectsConfigured(expectation.path)
                runsTasks = false
                loadsOnStore = false
                models.add(expectation)
            }
    
            void modelsQueriedAndNotPresent(String... paths) {
                for (path in paths) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheParallelTaskIntegrationTest.groovy

        @Rule
        BlockingHttpServer server = new BlockingHttpServer()
    
        @Requires(value = IntegTestPreconditions.NotParallelExecutor, reason = """
    Don't run in parallel mode, as the expectation for the setup build are incorrect and running in parallel
    does not really make any difference to the coverage
    """)
        def "runs tasks in different projects in parallel by default"() {
            server.start()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. cmd/signature-v4-utils.go

    			//
    			// According to
    			// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20
    			// Expect header is always of form:
    			//
    			//   Expect       =  "Expect" ":" 1#expectation
    			//   expectation  =  "100-continue" | expectation-extension
    			//
    			// So it safe to assume that '100-continue' is what would
    			// be sent, for the time being keep this work around.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

            List<ResourceExpectation> expectations = new ArrayList<>();
            for (ExpectedRequest call : expectedCalls) {
                expectations.add((ResourceExpectation) call);
            }
            addNonBlockingHandler(expectations);
        }
    
        private void addNonBlockingHandler(final Collection<? extends ResourceExpectation> expectations) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top